SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Excluding directories for restore
Author Message
Post Excluding directories for restore 
Hi,

I have a setup of a server being backed up regularly over a DSL line to
my server at home.
After quite a bad crash I am in the process of restoring the data. There
are some huge directories which I am now stuck a little. For those who
don't know DSL: Here in Germany it's usually a high download speed, e.g.
6 Mbit/s and a slow upload speed, 300 kbit/s in my case. In addition,
the ip is changed once every day, which results in a disconnect.
Now I want to restore the big directories step by step. For that, I
tried to restore like
rdiff-backup -r 02-02-2010
--exclude /var/customers/web1 /home/backup/var/customers
server::/var/customers
but the directory /var/customers/web1 gets restored anyway. An option of
--exclude /home/backup/var/customers/web1 gives an "invalid path
specification" (or something like that) error.
Also, doing it the other way around, first restoring /var/customers/web1
and then /var/customers does not work as the web1 subdirectory gets
restored again (which is exactly what I'd like to prevent.

Is there any way to exclude certain directories from being restored?

Thanks
Dominik

--
Dominik Sandjaja, Ahornweg 9, 47877 Willich, Germany

email: dominik < at > dadadom.de, Jabber: dadadom < at > jabber.ccc.de, ICQ: 35692530
GPG: 0x1C1DCFF6, web: http://dadadom.de, mobile: +49(0)177 2163314



_______________________________________________
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 Excluding directories for restore 
On Sunday 07 February 2010 4:09:17 am Dominik Sandjaja wrote:
Hi,

I have a setup of a server being backed up regularly over a DSL line to
my server at home.
After quite a bad crash I am in the process of restoring the data. There
are some huge directories which I am now stuck a little. For those who
don't know DSL: Here in Germany it's usually a high download speed, e.g.
6 Mbit/s and a slow upload speed, 300 kbit/s in my case. In addition,
the ip is changed once every day, which results in a disconnect.
Now I want to restore the big directories step by step. For that, I
tried to restore like
rdiff-backup -r 02-02-2010
--exclude /var/customers/web1 /home/backup/var/customers
server::/var/customers
but the directory /var/customers/web1 gets restored anyway. An option of
--exclude /home/backup/var/customers/web1 gives an "invalid path
specification" (or something like that) error.
Also, doing it the other way around, first restoring /var/customers/web1
and then /var/customers does not work as the web1 subdirectory gets
restored again (which is exactly what I'd like to prevent.

Is there any way to exclude certain directories from being restored?

Thanks
Dominik

--exclude '**var/customers/web1'

--
Adrian Klaver
adrian.klaver < at > gmail.com


_______________________________________________
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 Excluding directories for restore 
Hi Dominik

Although it is not an answer to your present predicament, I would say
that rdiff-backup is not advisable over an unstable connection. A better
strategy is to run rdiff-backup locally (preferably to a different
machine) and then use rsync to mirror the rdiff-backup repository to an
offsite machine using rsync with the --link-dest option. I recently
posted on this mailing list an example of how to do this. Problems with
the offsite backup process are minimised and you have a primary and
secondary backup.

Dominic

Dominik Sandjaja wrote:
Hi,

I have a setup of a server being backed up regularly over a DSL line to
my server at home.
After quite a bad crash I am in the process of restoring the data...

Thanks
Dominik


_______________________________________________
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 Excluding directories for restore 
Hi,

Am Montag, den 08.02.2010, 06:48 -0800 schrieb Adrian Klaver:
On Sunday 07 February 2010 4:09:17 am Dominik Sandjaja wrote:
Hi,

I have a setup of a server being backed up regularly over a DSL line to
my server at home.
After quite a bad crash I am in the process of restoring the data. There
are some huge directories which I am now stuck a little. For those who
don't know DSL: Here in Germany it's usually a high download speed, e.g.
6 Mbit/s and a slow upload speed, 300 kbit/s in my case. In addition,
the ip is changed once every day, which results in a disconnect.
Now I want to restore the big directories step by step. For that, I
tried to restore like
rdiff-backup -r 02-02-2010
--exclude /var/customers/web1 /home/backup/var/customers
server::/var/customers
but the directory /var/customers/web1 gets restored anyway. An option of
--exclude /home/backup/var/customers/web1 gives an "invalid path
specification" (or something like that) error.
Also, doing it the other way around, first restoring /var/customers/web1
and then /var/customers does not work as the web1 subdirectory gets
restored again (which is exactly what I'd like to prevent.

Is there any way to exclude certain directories from being restored?

Thanks
Dominik

--exclude '**var/customers/web1'

it really is that simple, thanks! Although I understand the meaning of
** I am a little confused why that matches and to what exactly it
expands to. But for now I am just happy. Smile

Cheers
Dominik



_______________________________________________
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 Excluding directories for restore 
Hi,

Am Montag, den 08.02.2010, 10:05 -0800 schrieb Adrian Klaver:

--exclude '**var/customers/web1'

it really is that simple, thanks! Although I understand the meaning of
** I am a little confused why that matches and to what exactly it
expands to. But for now I am just happy. Smile

'**' is a wild card that includes '/' so by doing '**var/customers/web1'
you are really expanding to /home/backup/var/customers/web1 which is
the full path of the directory you wanted to exclude.

yes, I get the wildcard pattern, but why does
--exclude /home/backup/var/customers/web1
not work:
$> rdiff-backup -r 02-02-2010 \
--exclude /home/backup/var/customers/web1 \
/home/backup/var/customers server::/var/customers
Using rdiff-backup version 1.2.8

[...]

Fatal Error: Fatal Error: The file specification
'/home/backup/var/customers/web1'
cannot match any files in the base directory
'/var/customers/'

That's why I would be interested in the actual expansion of ** and how
to write it without wildcards. And yes, it's more out of interest than
of practical usage now Smile

Thanks
Dominik



_______________________________________________
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 Excluding directories for restore 
On Monday 08 February 2010 10:57:10 am Dominik Sandjaja wrote:
Hi,

Am Montag, den 08.02.2010, 10:05 -0800 schrieb Adrian Klaver:
--exclude '**var/customers/web1'

it really is that simple, thanks! Although I understand the meaning of
** I am a little confused why that matches and to what exactly it
expands to. But for now I am just happy. Smile

'**' is a wild card that includes '/' so by doing '**var/customers/web1'
you are really expanding to /home/backup/var/customers/web1 which is
the full path of the directory you wanted to exclude.

yes, I get the wildcard pattern, but why does
--exclude /home/backup/var/customers/web1
not work:
$> rdiff-backup -r 02-02-2010 \
--exclude /home/backup/var/customers/web1 \
/home/backup/var/customers server::/var/customers
Using rdiff-backup version 1.2.8

[...]

Fatal Error: Fatal Error: The file specification
'/home/backup/var/customers/web1'
cannot match any files in the base directory
'/var/customers/'

That's why I would be interested in the actual expansion of ** and how
to write it without wildcards. And yes, it's more out of interest than
of practical usage now Smile

Thanks
Dominik


I really need to read more closely. It completely escaped me that you where
doing a restore. The issue is on the server side. The root for the server
is /var/customers so /home/backup/var/customers/web1 will not match. The '**'
wildcard will create a match with /var/customers/web1 on the server side.



--
Adrian Klaver
adrian.klaver < at > gmail.com


_______________________________________________
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