SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
about file Selection
Author Message
Post about file Selection 
Hi all,

I don't understand how to include and exclude files. What I want to do
is the following.


Files to be include(Remote Host)
/etc
/usr/local/etc
/www
/var

Files to be exclude(Local Host)
/etc/passwd
/var/log


I tried the following command.
local host # rdiff-backup --include root < at > www.remote.com::/etc --include root < at > www.remote.com::/usr/local/etc --include root < at > www.remote.com::/www --include root < at > www.remote.com::/var --exclude root < at > www.remote.com::/etc/passwd --exclude root < at > www.remote.com::/var/log root < at > www.remote.cc::/ /.backup

Post about file Selection 
Thank you for your reply!! I found my mistake in the last mail.

Files to be included(Remote Host)
/etc
/usr/local/etc
/www
/var

Files to be excluded(Remote Host)
/etc/passwd
/var/log

Directory where all files are preserved(Local Host)
/.backup


I want to backup remote file system to local file system.



On Sat, 1 May 2004 10:33:28 +0900
Jim Tittsler <jim < at > OnJapan.net> wrote:

On Sat, May 01, 2004 at 07:31:11AM +0900, Takeshi Nishioka wrote:
I don't understand how to include and exclude files. What I want to do
is the following.


Files to be include(Remote Host)
/etc
/usr/local/etc
/www
/var

Files to be exclude(Local Host)
/etc/passwd
/var/log

rdiff-backup only backs up in one direction at a time. Use
different commands to backup from remote host to local host, and
from local host to remote host.

One way to backup what you want from the remote host to the
current directory on the local host is:

rdiff-backup root < at > www.remote.com::/etc etc
rdiff-backup root < at > www.remote.com::/usr/local/etc localetc
rdiff-backup root < at > www.remote.com::/www www
rdiff-backup root < at > www.remote.com::/var var

Then to backup everything on the local host to the remote host
EXCEPT /etc/passwd and /var/log

rdiff-backup --exclude /etc/passwd --exclude /var/log root < at > www.remote.com::/localhostbackup

Jim Tittsler
Tokyo

Post about file Selection 
On Sat, May 01, 2004 at 11:35:01AM +0900, Takeshi Nishioka wrote:
Thank you for your reply!! I found my mistake in the last mail.

Files to be included(Remote Host)
/etc
/usr/local/etc
/www
/var

Files to be excluded(Remote Host)
/etc/passwd
/var/log

Directory where all files are preserved(Local Host)
/.backup


I want to backup remote file system to local file system.

I would still do it with four rdiff-backup commands, each
referencing one of the remote directories to be backed up (and
two of them would have exclude lines). It makes for easy to
understand command lines without needing to use includes.

(And, while I haven't had the problems others are reporting,
it could save at least a partial backup if an error caused
rdiff-backup to fail in one of the trees.)

However, if you want to do it all in one command, maybe you could
try something like this:
rdiff-backup --exclude /etc/passwd --exclude /var/log \
--include /etc --include /www --include /var --include /usr/local/etc \
--exclude / \
root < at > www.remote.com::/ /.backup
Exclude specific things, include desired directories, exclude everything
else.

--
Jim Tittsler, Tokyo http://www.OnJapan.net/ GPG: 0x01159DB6
Python Starship http://Starship.Python.net/
Ringo MUG Tokyo http://www.Ringo.net/rss.html

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