SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
--relative and rsync:// paths not behavi
Author Message
Post --relative and rsync:// paths not behavi 
I noticed that while backing up the rsync repository, the --relative
argument doesn't seem to have any affect.

Local filesystem paths and remote SSH paths work as I would expect under
the new system.

Here is what I'm have in my rsnapshot.conf file:

backup rsync://rsync.samba.org/rsyncftp/ rsync.samba.org/

And here is the command the rsync executes:

/usr/bin/rsync -azq --delete --numeric-ids --relative
--delete-excluded \
rsync://rsync.samba.org/rsyncftp/ \
/backup/private/snapshots/daily.0/rsync.samba.org/

Based on this, I would have expected the files to end up in:

/backup/private/snapshots/daily.0/rsync.samba.org/rsyncftp/

But instead, what happens is they end up in:

/backup/private/snapshots/daily.0/rsync.samba.org/

The rsync man page does not mention anything about an exception using
the rsync protocol. Am I doing something wrong here, or is there a
subtlety of rsync I am maybe not understanding?

In the meantime, if you're trying out 1.2.0rc1, be aware of this
potential gotcha!

If there is a way to make this more consistent with the handling of
local paths and ssh backups, I would like to change rsnapshot to make
rsync:// backups act the same. Otherwise, I suppose the documentation
will have to be modified to reflect this fact.

Thanks,
-Nathan


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post --relative and rsync:// paths not behavi 
It appears that I should have checked more carefully before e-mailing
the list. This e-mail is just to clarify the behavior of --relative
using rsync as a daemon. This information will be added (in a different
form) to the documentation in the 1.2.0 release.

When rsync is running as a daemon, it exports 1 or more "modules", which
are basically starting directories.

--relative works, but in relation to the root of the module, not the
root of the domain.

-- BEGIN EXAMPLE ---

user < at > localhost:~$ mkdir tmp/
user < at > localhost:~$ rsync -av --delete --numeric-ids --relative
--delete-excluded rsync://rsync.samba.org/rsyncftp/binaries/debian-i386/
tmp/
Welcome to the samba.org anonymous rsync archives.

Contact tpot < at > samba.org if you have problems with this service.

------

receiving file list ... done
binaries/
binaries/debian-i386/
binaries/debian-i386/README.html
binaries/debian-i386/rsync_2.5.7-1.diff.gz
binaries/debian-i386/rsync_2.5.7-1.dsc
binaries/debian-i386/rsync_2.5.7-1_i386.changes
binaries/debian-i386/rsync_2.5.7-1_i386.deb

sent 190 bytes received 187938 bytes 75251.20 bytes/sec
total size is 187351 speedup is 1.00
user < at > localhost:~$ ls -l tmp/binaries/debian-i386/
total 200K
-rw-rw-r-- 1 ndr scubanin 2.0K Dec 3 2003 README.html
-rw-r--r-- 1 ndr scubanin 41K Dec 3 2003 rsync_2.5.7-1.diff.gz
-rw-r--r-- 1 ndr scubanin 543 Dec 3 2003 rsync_2.5.7-1.dsc
-rw-r--r-- 1 ndr scubanin 981 Dec 3 2003 rsync_2.5.7-1_i386.changes
-rw-r--r-- 1 ndr scubanin 139K Dec 3 2003 rsync_2.5.7-1_i386.deb

-- END EXAMPLE --

As you can see, the remaining paths are kept intact, but the rsyncftp/
path is omitted, because it's a module that's exported from rsync's servers.

Look what happens when I try to sync the entire domain:

-- BEGIN EXAMPLE --

user < at > localhost:~$ rsync -av --delete --numeric-ids --relative
--delete-excluded rsync://rsync.samba.org/ tmp/
Welcome to the samba.org anonymous rsync archives.

Contact tpot < at > samba.org if you have problems with this service.

------

ftp whole ftp area (approx 2 GB)
sambaftp Samba ftp area (approx 500Mb)
sambaftp-mirror Samba ftp area including Binary_Packages (approx 1.4 GB)
rsyncftp rsync ftp area
sambawww Samba WWW pages (approx 100 MB)
distccwww distcc WWW pages
cvs CVS repository
tivo

-- END EXAMPLE --

It's only possible to start a transfer one level down, out of one of the
rsync daemon's "modules".

I hope this clears up the misinformation from my previous post.

-Nathan

I noticed that while backing up the rsync repository, the --relative
argument doesn't seem to have any affect.

Local filesystem paths and remote SSH paths work as I would expect
under the new system.

Here is what I'm have in my rsnapshot.conf file:

backup rsync://rsync.samba.org/rsyncftp/ rsync.samba.org/

And here is the command the rsync executes:

/usr/bin/rsync -azq --delete --numeric-ids --relative
--delete-excluded \
rsync://rsync.samba.org/rsyncftp/ \
/backup/private/snapshots/daily.0/rsync.samba.org/

Based on this, I would have expected the files to end up in:

/backup/private/snapshots/daily.0/rsync.samba.org/rsyncftp/

But instead, what happens is they end up in:

/backup/private/snapshots/daily.0/rsync.samba.org/

The rsync man page does not mention anything about an exception using
the rsync protocol. Am I doing something wrong here, or is there a
subtlety of rsync I am maybe not understanding?

In the meantime, if you're trying out 1.2.0rc1, be aware of this
potential gotcha!

If there is a way to make this more consistent with the handling of
local paths and ssh backups, I would like to change rsnapshot to make
rsync:// backups act the same. Otherwise, I suppose the documentation
will have to be modified to reflect this fact.

Thanks,
-Nathan


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB