RememberArguments

From RdiffBackupWiki

Jump to: navigation, search

description

it would be nice to let rdiff-backup store calling arguments in a file in rdiff-backup-data directory. this way rdiff-backup remembers where the backup was fetched from and how it was done.

this may be used to repeat a backup without the need of specifying the location. an additional parameter (e.g. --remembered-arguments) could be used to refer to the stored location.

any additional arguments should be appended after the remembered ones. (the user has to keep in mind not to use conflicting arguments)


example

  • imagine the following call that backups /data-to-backup from host example.com:
rdiff-backup user@example.com::/data-to-backup /data/backup/

it stores its arguments in /data/backup/rdiff-backup-data/arguments.


  • now to repeat that backup all you need to do is enter the target directory from above (/data/backup) and run rdiff-backup again:
cd /data/backup/
rdiff-backup --remembered-arguments

this will act like called in the first run above. (exept that it may not store argument data again)


  • it is also possible to specify the target directory directly after the --remembered-arguments parameter:
rdiff-backup --remembered-arguments /data/backup/

this will act like the above (without the need of cd'ing into /data/backup first)


  • adding additional parameters should be possible, too:
rdiff-backup --remembered-arguments /data/backup/ --verbosity 5

this will act like the above and increase verbosity.

Personal tools