You are here
Aris Moratalla - Wed, 2011/01/26 - 02:49
Hi guys!
I got a TKL Fileserver up and running for almost 6 months now. I am using a cron job to create a local backup of samba shares. I have noticed that the Date Modified of created backup files is the date when the files were created.
cron job: cp -R /mnt/fileserver/File-server /mnt/backup
I'm just wondering if I could leave the Dated Modified of the backup files same with the original files.
Thanks in advance!
Forum:
Not sure how you would do that
No doubt there is a way. Perhaps if you tar the files first (not sure if that'd work?) Another work around may be to rename the file to reflect the backup. Just remember that TKL is Ubuntu under the hood so anything that applies to Ubuntu (and to some extent Debian too) should apply to TKL.
Thanks for the reply Jed! I
Thanks for the reply Jed!
I will try using tar balls.
Thanks bob! will try it.
Thanks bob! will try it.
not working
Hi Bob!
It's not working. I also check on cp --help... there is no -c described as argument.
I have the command on my cron job.
cp -R /mnt/fileserver/FS_Backup/File-server /mnt/backup
Hope ou can help.
Thanks
As stated...........
in the post by bobmct the '-p' option should preserve ownership and timestamp.
From the man page for cp:
I suspect it's a Mac thing
may bad
sorry...may bad. I thought it was -c.
So in my command.. is it cp -R -c?
-p as in 'peter'
'cp -Rp' or 'cp -R -p'
As far as I know there is no -c option.
errors
I am getting these error...
my bad again
I was able to sort this out.
case sensitivity caused the error.
cp -R -p /mnt/fileserver/FS_Backup/File-server/ADM/201 /mnt/backup.
Thank you so much Don Sanderson, bob and Jed!
CP is confused
You posted as I was writing this, glad you got it sorted. :-)
You will have to examine your file system and see what is wrong with the path:
/mnt/fileserver/FS_Backup/File-server/adm/201
CP can't find, or understand, what you are asking of it.
Just a tought
Hi again Don!
I know I should create a new topic for this question- but I just want to ask on how I can make 2 local fileserver synchronize... from the filesystem to the mounted partions. What I am trying to do is make an exact replica of my current TKL Fileserver which will synchronize with the original at the end of the day.
I have tried TKLBAM but it did not work for me because the internet here is not that good (the disconnects like every 15 minutes, not to mention a very low bandwidth).
Thanks in advance!
See this post:
http://www.turnkeylinux.org/blog/announcing-tklbam#comment-4607
Make a local backup from the 'original'.
Restore to the 'clone' from that backup.
Add new comment