Implicit --itemize
Hi From reading the man pages I couldn't find such a hint, but is there a way that --itemize is implicitely activated e.g. with using another parameter? Is it possible that SSH -i key could also be scanned by rsync and interpreted as --itemize? Can it be switched off again with --no-i? That didn't seem to have an effect. I used these params in a script with rsync 3.0.3pre1 on a NAS. MYRSYNC_ARGS=-rptgo --stats --modify-window=1 --timeout=1800 --log-file=/tmp/rsbackup.log --rsync-path=/path/to/rsync --timeout=3600 SSH=ssh -l user -ax -i /path/to/key -o ClearAllForwardings=yes -o StrictHostKeyChecking=no rsync $MYRSYNC_ARGS -l --delete -e $SSH --no-i $SOURCE/mod $DEST:$SOURCE/mod And that still results in: 2011/01/17 20:00:08 [3918] .d..t.. server/Directory/ 2011/01/17 20:00:13 [3918] f..t.. server/Directory/File etc Thanks for any help. rsync works as expected, it just blows up the logfile which makes it harder to see errors. The SSH part also works or we shouldn't get a connection to the other server. bye Fabi -- 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
DO NOT REPLY [Bug 7123] Use both old dest file and partial file as basis data
https://bugzilla.samba.org/show_bug.cgi?id=7123 --- Comment #4 from mar...@backup-systems.co.uk 2011-01-18 03:38 CST --- Is there a plan to fix this? -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the QA contact for the bug, or are watching the QA contact. -- 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
Disk image with rsync/rsnapshot
I want to make a full disk image backup of my disk with rsnapshot/rsync that I can restore on a new disk. Part of my /etc/rsnapshot.conf looks like follows: exclude /proc exclude lost+found exclude /media exclude /sys exclude /dev exclude /tmp exclude /dev backup/ localhost/ My questions are ... can I use the backup and copy everything from localhost/hourly.0 --- / of my new disk and is it bootable ? -- 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: Implicit --itemize
On Tue, 2011-01-18 at 09:32 +0100, Fabian Cenedese wrote: From reading the man pages I couldn't find such a hint, but is there a way that --itemize is implicitely activated e.g. with using another parameter? I used these params in a script with rsync 3.0.3pre1 on a NAS. MYRSYNC_ARGS=-rptgo --stats --modify-window=1 --timeout=1800 --log-file=/tmp/rsbackup.log --rsync-path=/path/to/rsync --timeout=3600 SSH=ssh -l user -ax -i /path/to/key -o ClearAllForwardings=yes -o StrictHostKeyChecking=no rsync $MYRSYNC_ARGS -l --delete -e $SSH --no-i $SOURCE/mod $DEST:$SOURCE/mod And that still results in: 2011/01/17 20:00:08 [3918] .d..t.. server/Directory/ 2011/01/17 20:00:13 [3918] f..t.. server/Directory/File etc From the man page: --log-file=FILE If specified as a client option, transfer logging will be enabled with a default format of %i %n%L. See the --log-file-format option if you wish to override this. -- Matt -- 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: [PATCH] One more -x to not traverse cyclic bind-mounts
On 01/13/2011 06:14 PM, Wayne Davison wrote: On Thu, Jan 13, 2011 at 10:24 AM, Jeff Hansen jhan...@cardaccess-inc.com mailto:jhan...@cardaccess-inc.com wrote: This patch allows one to repeat the '-x' option a third time to stop rsync from traversing potentially cyclic bind mounts that are on the same filesystem. See the support/mnt-excl script for one way exclude all mounts (including bind mounts) from an rsync. The script also recommends an awk command piped into an absolute-anchored exclude, but does get some of the details wrong. Here's a better explanation: awk '{print $2}' /proc/mounts | rsync -avf 'merge,/- -' /dir host:/dest/ The above will get a list of all mount points on the system and use it as an exclude list to prevent any mounts from being traversed. However, what it will not do is to protect the related mount points on the receiving side from deletion unless you happen to be copying into an exactly-the-same path on the destination. If you want the excluded directories to be protected on the receiving side, you're better off using the mnt-excl script (which tweaks the excludes to be relative to the transfer). ..wayne.. I hate to beat an (apparently) dead horse, but I've tested this patch on several systems and I would really appreciate it if this patch (or some variation of it) went into mainline. It correctly syncs up whether the side with bind-mounts is local or remote. Using scripts feels like an ugly work-around to the initial problem. -Jeff -- Jeff Hansen smime.p7s Description: S/MIME Cryptographic Signature -- 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: Disk image with rsync/rsnapshot
I want to make a full disk image backup of my disk with rsnapshot/rsync that I can restore on a new disk. Part of my /etc/rsnapshot.conf looks like follows: exclude /proc exclude lost+found exclude /media exclude /sys exclude /dev exclude /tmp exclude /dev backup/ localhost/ My questions are ... can I use the backup and copy everything from localhost/hourly.0 --- / of my new disk and is it bootable ? One thing to keep in mind is that backing up a computer system when it is running may cause issues. For example, if you backup the files of a running database (eg. MySQL) on a computer system, by backing up the files (which the database uses stores information within) by backing up the computers file system, then upon a restore of these files, the database may be in an inconsistent state. One reason for this is because some data may not have been flushed to these files within the file system. However, there other potential issues as well. One option in the above scenario, would be to shutdown the data base during the backup. If this is a possibility. Another would be to perform a database dump. Then upon a restore to load the dump back back into the database as part of the restore process (eg. load the dump back into MySQL). Yet another approach would be to have a mirror of the database on a separate system and perform the dump on this separate system. There are other approaches as well. Above is one example of potential issues. For a full bootable system backup. You may want to have a look at the Clonezilla project : http://clonezilla.org/ If it is possible to, shutdown the machine and then perform the backup with a tool like Clonezilla this will keep your backup and restore process very simple. Hope this helps. - This email is protected by LBackup, an open source backup solution. 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: [PATCH] One more -x to not traverse cyclic bind-mounts
On Tue, Jan 18, 2011 at 11:27 AM, Jeff Hansen jhan...@cardaccess-inc.comwrote: I hate to beat an (apparently) dead horse, but I've tested this patch on several systems and I would really appreciate it if this patch (or some variation of it) went into mainline. You patch just prevents recursing into subdirectories of the directories mentioned as command-line args, which can be accomplished several different ways, including an exclude: rsync -aiv --exclude='/*/*/*' src1 src2 /dest/ as well as using -d with --no-r as long as the source dirs have a trailing slash. For instance: rsync -aivd --no-r src/ /dest/src/ or a multiple source dir example of -d --no-r combined with -R: rsync -aivdR --no-r src1/ src2/ /path/./something/deeper/ /dest/ See also --files-from (which is essentially the same as the -d --no-R examples, with trailing slashes needed on the dirs mentioned in the input file that should include their contents). I can think of no nice, portable way to discover bind mounts, so I'll leave it up to the user to tell rsync which dirs to elide. ..wayne.. -- 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