rdiff-backup question
Monezz
monezz at gmail.com
Thu Aug 12 13:40:32 UTC 2010
Borrowed some wisdom from the extensive rdiff-backup man page.
You have to execute the --remove-older-than command on your source
directory in addition to the backup command.
man page: "rdiff-backup cannot remove-older-than and back up or
restore in a single session. In order to both backup a directory and
remove old files in it, you must run rdiff-backup twice."
If you have local backups, you can also execute the command on your
backup directory.
rdiff-backup --remove-older-than 2W host.net::/remote-dir
will restult in
ssh -C host.net rdiff-backup --server --remove-older-than 2W /remote-dir
so with local backup it will probable be more effictient to omit the
server and run it on the target directory.
--remove-older-than will remove the incremental backup information,
not the files , older then specified time.
In your case, if you delete a file, you won't be able to restore it
after 2 weeks.
On Thu, Aug 12, 2010 at 3:10 PM, Maxime Alarie <malarie at processia.com> wrote:
>
>
>
>
> From: ubuntu-users-bounces at lists.ubuntu.com
> [mailto:ubuntu-users-bounces at lists.ubuntu.com] On Behalf Of Maxime Alarie
> Sent: 11 August 2010 10:20
> To: Ubuntu user technical support,not for general discussions
> Subject: rdiff-backup question
>
>
>
> Hello all,
>
>
>
>
>
> I am reading about rdiff-backup. I am using it in a simple way,
> (rdiff-backup $source $target) but I would like to make sure all those
> incremental backups are not eating up all my space. So I want to put into
> place the --remove-older-than option. I read about that option, but im not
> sure I understand it completely.
>
>
>
>
>
> This section assumes that rdiff-backup has been used in the past to back up
> tohost.net::/remote-dir, but all commands would work locally too, if the
> hostname were ommitted.
>
> This commands deletes all information concerning file versions which have
> not been current for 2 weeks:
>
> rdiff-backup --remove-older-than 2W host.net::/remote-dir
>
> Note that an existing file which hasn't changed for a year will still be
> preserved. But a file which was deleted 15 days ago cannot be restored after
> this command is run.
>
>
>
>
>
>
>
> As I understand the example, rdiff-backup --remove-older-than 2W
> host.net::/remote-dir means I should run the normal backup command with the
> option –remove-older-than 2W and by doing so, the 2 weeks+ files in the
> target repo will be deleted? Or I have to run that command in my target
> dir only?
>
>
>
> Thanks.
>
>
>
>
>
> Bump J
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>
More information about the ubuntu-users
mailing list