osdir.com
mailing list archive

Subject: --relative and rsync:// paths not behaving as expected? - msg#00016

List: sysutils.backup.rsnapshot.general

Date: Prev Next Index Thread: Prev Next Index
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


Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

Re: RPM upgrade script question

After doing some more research, it seems like this solution works fairly well: %post -p /usr/bin/perl # ... big long perl script Anyone familiar with RPM, am I on the right track here? The current spec file is in CVS if anyone wants to see it: http://cvs.sourceforge.net/viewcvs.py/rsnapshot/rsnapshot/redhat/SPECS/rsnapshot.spec?rev=1.35&view=auto That link isn't valid yet, but when SourceForge does the CVS re-sync it should be the latest version. Thanks, -Nathan Nathan Rosenquist wrote: I thought I'd pose this question here for any RPM experts on the list. I will also continue to look for the solution on my own. Since rsnapshot 1.2.0 will require modifying the config file (with "make upgrade" in the source distribution), I need to run this automatically when the RPM is installed. ------------------------------------------------------- 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

Next Message by Date: click to view message preview

Re: RPM upgrade script question

On 01/23 05:42 , Nathan Rosenquist wrote: > After doing some more research, it seems like this solution works fairly > well: > > %post -p /usr/bin/perl > # ... big long perl script > > Anyone familiar with RPM, am I on the right track here? I would probably install the upgrade script to /usr/share/somewhere, and run it at install time. leave the clueful users with an easy way to see what was done. IMHO, one should try to avoid doing too many gyrations in the .spec files themselves, since they aren't readily visible to the end user. -- Carl Soderstrom Systems Administrator Real-Time Enterprises www.real-time.com ------------------------------------------------------- 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

Previous Message by Thread: click to view message preview

RPM upgrade script question

Hi everyone, I thought I'd pose this question here for any RPM experts on the list. I will also continue to look for the solution on my own. Since rsnapshot 1.2.0 will require modifying the config file (with "make upgrade" in the source distribution), I need to run this automatically when the RPM is installed. The upgrade script is written in Perl, and is located at "utils/upgrade_rsnapshot.pl" in the source distribution. My questions stems from the fact that I don't necessarily want to install this script on the user's system (and especially not in /usr/bin), but I do want it to run once at install time. The RPM spec files allow arbitrary shell commands to be pasted in to specific sections of the spec file, such as under %pre and %post. However, as far as I can see, these can't seem to reference files that don't get installed on the filesystem as part of the package. I really don't want to paste a 200+ line Perl script and voodoo to make it run into the spec file either. I know I can't be the first person to want to do something like this, and I'm pretty sure that RPM has a provision for accomplishing this sort of thing. Does anyone have any pointers on how to accomplish this? 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

Next Message by Thread: click to view message preview

Rsnapshot deletes backup data when SSH connection fails! :( Help!

Hi, It's possible I setup rsnapshot wrong, but the program is not performing correctly for me. I have two PC's I backup remotely over SSH to my server. The problem is that these PC's are not online 24/7. I have realized, that when my PC's are turned off, rsnapshot starts deleting all my backuped data for these PC's!!. How do I get rsnapshot to not delete the PC's data if rsync can not connect to the PC over SSH? Here are the first commands I currently see from rsnapshot: touch /var/run/rsnapshot /bin/rm -rf /mnt/md0/backup/hourly.3/ mv /mnt/md0/backup/hourly.2/ /mnt/md0/backup/hourly.3/ mv /mnt/md0/backup/hourly.1/ /mnt/md0/backup/hourly.2/ mv /mnt/md0/backup/hourly.0/ /mnt/md0/backup/hourly.1/ So, all the data is erased in my hourly.0 directory, even before an attempt is made to connect to rsnapshot. I was previously using a similar program called snapback2 which handles this condition perfectly fine. Can someone please help me fix this, or comment on the problem? Thanks, Casey ------------------------------------------------------- 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
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by