SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
help with command line
Author Message
Post help with command line 
$ 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?

thanks!

--
Steve

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

Post help with command line 
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] [[[user < at > ]host1.foo]::source_directory]
[[[user < at > ]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}
[[[user < at > ]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 < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Post help with command line 
On 08/06/10 00:37, Steven Adeff wrote:

perfect, thanks!

second question...

so I have a directory,
/media/storage/2/Music/Music

of which I have some specific folders I want to rdiff-backup to one drive,
/media/storage/1/Music

and all the rest I want to rdiff to another drive. So I understand I
can use the exclude command for the second case with an exclude file
like such:
rdiff-backup --exclude-globbing-filelist rdiff-music.globlist
/media/storage/2/Music/Music/ /media/storage/3/Music

but what is the best way to tell rdiff-backup that I want to only
backup the specific set of directories in that globlist file?

If I use it as an include-globbing-filelist it complains that
including is it's normal action, but I don't quite get how to tell it
to exclude everything *but* what I want it to include.

THANKS!


You'd do that by including some files and then excluding everything.
Like
rdiff-backup --include /foo/onlythis --exclude /foo /foo /dest

For more, see "FILE SELECTION" in
http://rdiff-backup.nongnu.org/rdiff-backup.1.html , it's quite well
explained.

Regards,
Jakob

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

Post help with command line 
On Mon, Jun 7, 2010 at 7:04 PM, Jakob Unterwurzacher <jakobunt < at > gmail.com> wrote:
On 08/06/10 00:37, Steven Adeff wrote:

perfect, thanks!

second question...

so I have a directory,
/media/storage/2/Music/Music

of which I have some specific folders I want to rdiff-backup to one drive,
/media/storage/1/Music

and all the rest I want to rdiff to another drive. So I understand I
can use the exclude command for the second case with an exclude file
like such:
rdiff-backup --exclude-globbing-filelist rdiff-music.globlist
/media/storage/2/Music/Music/ /media/storage/3/Music

but what is the best way to tell rdiff-backup that I want to only
backup the specific set of directories in that globlist file?

If I use it as an include-globbing-filelist it complains that
including is it's normal action, but I don't quite get how to tell it
to exclude everything *but* what I want it to include.

THANKS!


You'd do that by including some files and then excluding everything.
Like
 rdiff-backup --include /foo/onlythis --exclude /foo /foo /dest

For more, see "FILE SELECTION" in
http://rdiff-backup.nongnu.org/rdiff-backup.1.html , it's quite well
explained.

so what the file is saying is
rdiff-backup --include-globbing-filelist music.glob --exclude
/media/storage/2/Music/Music/ /media/storage/2/Music/Music
/media/storage/1/Music

will include all the directories in /media/storage/2/Music/Music that
are listed in my music.glob file since the include comes first. even
if the exclude excludes the same folder

here's the problem. that doesn't work.
-steve

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

Post help with command line 
On 10/06/10 02:03, Steven Adeff wrote:
If I use it as an include-globbing-filelist it complains that
including is it's normal action, but I don't quite get how to tell it
to exclude everything *but* what I want it to include.
[...]

so what the file is saying is
rdiff-backup --include-globbing-filelist music.glob --exclude
/media/storage/2/Music/Music/ /media/storage/2/Music/Music
/media/storage/1/Music

will include all the directories in /media/storage/2/Music/Music that
are listed in my music.glob file since the include comes first. even
if the exclude excludes the same folder

here's the problem. that doesn't work.
-steve

Hmm, I thought that was exactly what you wanted - include a
hand-selected list of folders and exclude everything else. Could you
give an example (i.e. list some folders) and what you want to happen?

Jakob

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

Post help with command line 
On 12/06/10 03:59, Steven Adeff wrote:
so what the file is saying is
rdiff-backup --include-globbing-filelist music.glob --exclude
/media/storage/2/Music/Music/ /media/storage/2/Music/Music
/media/storage/1/Music

will include all the directories in /media/storage/2/Music/Music that
are listed in my music.glob file since the include comes first. even
if the exclude excludes the same folder

here's the problem. that doesn't work.
-steve

Hmm, I thought that was exactly what you wanted - include a
hand-selected list of folders and exclude everything else. Could you
give an example (i.e. list some folders) and what you want to happen?

Jakob

ok, so I have
/media/storage/2/Music/Music
within it I have
Podcasts
[...]

and the only ones I want to include are:
/media/storage/2/Music/Music/HDTracks
/media/storage/2/Music/Music/KEXP Song of the Day
/media/storage/2/Music/Music/My Amazon
/media/storage/2/Music/Music/My eMusic
/media/storage/2/Music/Music/My CDs
(which is my music.glob file)

what I can't get it to do is ignore all the others. all I can manage
to do is get all of them or none of them...

I'm starting to think you see this bug:
https://bugzilla.redhat.com/show_bug.cgi?id=587758

Could you extract the attached tar.gz to a empty directory, cd to it,
execute
./run.sh
and send the output?

For reference, this is the output here, and you see that dst does NOT
contain not.1 and not.2 .
-----------------------------------------------
$ ./run.sh
rdiff-backup 1.2.8
.:
dst filelist run.sh src

./dst:
rdiff-backup-data yes.1 yes.2

./dst/rdiff-backup-data:
backup.log file_statistics.2010-06-12T13:34:41+02:00.data.gz
chars_to_quote increments
current_mirror.2010-06-12T13:34:41+02:00.data
mirror_metadata.2010-06-12T13:34:41+02:00.snapshot.gz
error_log.2010-06-12T13:34:41+02:00.data
session_statistics.2010-06-12T13:34:41+02:00.data

./dst/rdiff-backup-data/increments:

./dst/yes.1:

./dst/yes.2:

./src:
not.1 not.2 yes.1 yes.2

./src/not.1:

./src/not.2:

./src/yes.1:

./src/yes.2:

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

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