SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Can I change the backup path in the snapshot_root directory?
Author Message
Post Can I change the backup path in the snapshot_root directory? 
I'm backing up a website located in the public_html directory of a user. So my conf file has this backup line:
backup  user < at > domain.com:/home/username/public_html/website      backupdir

Which backs the site up in the snapshot_root of my backup computer in this directory:
daily.0/backupdir/home/username/public_html/website

I'd like to omit the empty directories in the backup and have this in my snapshot root
daily.0/backupdir

Sometimes I can shorten the path making a symlink /website that points to the site and then use the symlink in the backup line, but I don't always have access to the root user for sites I'm backing up.

I've tried using relative paths in the backup line but they don't seem to work, and I didn't see anything in the man page to indicate it was possible.

Still, I'm hoping I've just missed something in the documentation.

Any way to change the backup path in the snapshot_root directory?

Post Can I change the backup path in the snapshot_root directory? 
On Mon, May 28, 2012 at 9:22 PM, Ron McCulloch <ron.mcculloch < at > gmail.com ([email]ron.mcculloch < at > gmail.com[/email])> wrote:
I'm backing up a website located in the public_html directory of a user. So my conf file has this backup line:
backup  user < at > domain.com:/home/username/public_html/website      backupdir

Which backs the site up in the snapshot_root of my backup computer in this directory:
daily.0/backupdir/home/username/public_html/website

I'd like to omit the empty directories in the backup and have this in my snapshot root
daily.0/backupdir

This should be what you are looking for

backup  user < at > domain.com:/home/username/public_html/website/./      backupdir

Post Can I change the backup path in the snapshot_root directory? 
Am 28.05.2012 19:31, schrieb Владимир Бережной: On Mon, May 28, 2012 at 9:22 PM, Ron McCulloch <ron.mcculloch < at > gmail.com ([email]ron.mcculloch < at > gmail.com[/email])> wrote:
I'm backing up a website located in the public_html directory of a user. So my conf file has this backup line:
backup user < at > domain.com:/home/username/public_html/website ([email]user < at > domain.com:/home/username/public_html/website[/email]) backupdir

Which backs the site up in the snapshot_root of my backup computer in this directory:
daily.0/backupdir/home/username/public_html/website

I'd like to omit the empty directories in the backup and have this in my snapshot root
daily.0/backupdir

This should be what you are looking for

backup user < at > domain.com:/home/username/public_html/website/./ ([email]user < at > domain.com:/home/username/public_html/website/./[/email]) backupdir

Does it really work to just add a dot at the end?

I changed the following line in rsnapshot.conf
#rsync_long_args --delete --numeric-ids --relative --delete-excluded
to
rsync_long_args --delete --numeric-ids --delete-excluded

so that it doesn't add the long relative path from the backup source to the backup destination.

Regards Ronny

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