On 07/06/10 16:54, Steven Adeff wrote:
> $ rdiff-backup -v 9 --no-carbonfile --remove-older-than 14D
> --include-globbing-filelist
> /media/storage/1/scripts/rdiff-music.include
> --exclude-globbing-filelist
> /media/storage/1/scripts/rdiff-music.exclude
> /media/storage/2/Music/Music/ /media/storage/1/Music
> Mon Jun  7 10:52:49 2010  Using rdiff-backup version 1.2.8
> Mon Jun  7 10:52:49 2010  Fatal Error: Wrong number of arguments given.
> See the rdiff-backup manual page for more information.
> 
> if I remove the --remove-older-than 14D part it works fine, but as far
> as I can tell from the man file I'm using the command correctly?

The man page says

>        rdiff-backup      [options]      [[[u...@]host1.foo]::source_directory]
>        [[[u...@]host2.foo]::destination_directory]
> 
>        rdiff-backup  {{  -l  |  --list-increments  }   |   --remove-older-than
>        time_interval  |  --list-at-time  time  |  --list-changed-since  time |
>        --list-increment-sizes   |   --verify    |    --verify-at-time    time}
>        [[[u...@]host2.foo]::destination_directory]

What this means is that you can only do
*either*
 rdiff-backup [options] <source> <dest>
*or*
 rdiff-backup --remove-older-than <dest>

Means, you'd do the backup first and then call rdiff-backup once more
with remove-older-than:
 rdiff-backup --remove-older-than 14D /media/storage/1/Music

Regards,
Jakob

_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Reply via email to