Re: Rsync backup issues using relative paths and LVM snapshots

2010-07-19 Thread Henri Shustak
 I did think about remotely executing a mkdir before the backup, but one 
 blocker is that I will be using Thecus NAS boxes as some off-site locations 
 and I don't have shell access.
 
 You could mkdir the directory locally somewhere (anywhere), and rsync
 just that directory to the remote side, affectively doing a remote mkdir
 via rsync.  Repeat for deeper directories. If the remote directory
 already exist, it shouldn't do any harm.



Great thinking! That would certainly work. Such an elegant approach!

This would even work if you want to create a hierarchy you just need to use the 
rsync --recursive option.


-
This email is protected by LBackup, an open source backup solution. 
Free as in freedom; LBackup is licensed under the GNU GPL
http://www.lbackup.org

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: --compare-dest weirdness

2010-07-19 Thread Henri Shustak
 interestingly, i tried to see if something was wrong with my statments by 
 doing:
 mkdir ~/rsynctest/dir1
 mkdir ~/rsynctest/dir2
 mkdir ~/rsynctest/dir3
 
 nano ~/rsynctest/dir1/file1 (wrote the line hello world and saved)
 nano ~/rsynctest/dir1/file2 (wrote the line hello and saved)
 
 cp ~/rsynctest/dir1/file* ~/rsynctest/dir2/
 
 checked md5sums of both files in both dirs to ensure they were identical
 
 the did rsync -rvu --compare-dest=/home/kevin/rsynctest/dir2/
 /home/kevin/rsynctest/dir1/ /home/kevin/rsynctest/dir3/
 
 the two files from dir1 were copied to dir3, even though identical
 copies, with the same names, existed in dir2.
 
 i also tried this again with the compare dir relative to the dest dir,
 i.e.: rsync -rvu --compare-dest=../dir2/ /home/kevin/rsynctest/dir1/
 /home/kevin/rsynctest/dir3/ again with same result



I thought about this further and I think the problem you are having is that the 
modification times are not being preserved and you are not using the --checksum 
option. 

As such, I suggest that you add the --times or --checksum option and see if 
that helps. 

I suspect that this will solve your problem. Let me know =:^)


-
This email is protected by LBackup, an open source backup solution. 
Free as in freedom; LBackup is licensed under the GNU GPL
http://www.lbackup.org


-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Rsync sequence

2010-07-19 Thread dschuett

Hi all,

I am running Ubuntu server 10.04 and use rsync to do all my backups. I would
like to backup multiple directories to my external hard drive, but I am
faced with a problem on how to set up crontab -e to allow each rsync
statement to perform one after the other. Right now I have each one set to
run on different nights, but I would like them all to run the same night to
allow for a more efficient backup. I know I could just run them at different
times in the same night, but I don't want to chance one not completing
before the other starts. Can I just list them one after the other like so in
crontab -e:

# m h  dom mon dow   command
00 4 * * 7 rsync -auv --delete /Godfather/Music /Backup
 rsync -auv --delete /Godfather/Documents /Backup
 rsync -auv --delete /Godfather/Setups /Backup
 rsync -auv --delete /Godfather/Pictures /Backup
 rsync -auv --delete /Godfather/Backups /Backup
 rsync -auv --delete /Godfather/Videos /Backup

This is my current crontab -e
# m h  dom mon dow   command
00 4 * * 7 rsync -auv --delete /Godfather/Music /Backup
00 4 * * 6 rsync -auv --delete /Godfather/Documents /Backup
00 4 * * 5 rsync -auv --delete /Godfather/Setups /Backup
00 4 * * 4 rsync -auv --delete /Godfather/Pictures /Backup
00 4 * * 3 rsync -auv --delete /Godfather/Backups /Backup
00 4 * * 2 rsync -auv --delete /Godfather/Videos /Backup

Thanks in advance!
-- 
View this message in context: 
http://old.nabble.com/Rsync-sequence-tp29210771p29210771.html
Sent from the Samba - rsync mailing list archive at Nabble.com.

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html