Hi, I'm using the following command to grab a list of directories, not their contents, from a source server and create them locally(a backup server) rsync -v --stats -d --include='+ */' --include='- *' --force --delete-during --backup \ --backup-dir=/mnt/backups/_DELETED 192.168.0.2::'ucp/*' . It recreates the list of directories locally with out a problem. However, if a directory on the source server is removed, the local "copy" is not moved to the backup-dir. The deleted directories are generally not empty so I added the --force option but that had not effect. Is it because I'm only looking at the directories and not their contents that it's not moving the remove directories? FYI, what I'm attempting to do is recreate the top level directory structure locally, then go through the directories, syncing each one. The only part that is not working is the removal/backing-up of the removed directories. David
On Fri, Dec 02, 2005 at 10:00:14AM -0500, David Filion wrote:> rsync -v --stats -d --include='+ */' --include='- *' --force > --delete-during --backup \ > --backup-dir=/mnt/backups/_DELETED 192.168.0.2::'ucp/*' .Read the first two paragraphs from the --delete option in the rsync manpage: http://rsync.samba.org/ftp/rsync/rsync.html It explains why the '*' is not appropriate and also that -r is (currently) required to be used (the CVS version will delete inside directories sent via -d, but not older versions of rsync). If you don't want subdirectories inside the top-level dirs to be copied, you can either exclude them (add --exclude='*/*' prior to your first include and add -r to the options) or upgrade to the CVS version. ..wayne..
Possibly Parallel Threads
- gsub with perl=TRUE results in 'this version of PCRE is not compiled with Unicode property support' in R-devel
- [Mesa-dev] [PATCH 2/2] nv30: fix clip plane uploads and enable changes
- [Mesa-dev] [PATCH 2/2] nv30: fix clip plane uploads and enable changes
- [Mesa-dev] [PATCH 2/2] nv30: fix clip plane uploads and enable changes
- Nagios purge deleted items and notify nagios service problem