LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 11-20-2008, 10:47 PM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 443

Rep: Reputation: 31
how to compose rdiff-backup command-line?


I want backup 6directories of my server.com to /backup of backup.com.
I connected two boxes through ssh - scp somthing test@backup.com.

6directories of my server.com:
/var/www/html
/opt
/home
/root
/prgs/work_place
some of /etc

It's so difficult in making command_line rdiff-backupb.
My problem is this command is one sentence for crontab.

Any helpful comment would be appreciated.
 
Old 11-21-2008, 06:52 PM   #2
halo14
Senior Member
 
Registered: Apr 2004
Location: Surprise, AZ
Distribution: Debian | CentOS | Arch
Posts: 1,103

Rep: Reputation: 45
Something like this ought to work...Really you would be much better off just give separate commands though.

Code:
rdiff-backup --include /var/www/html --include /opt --include /home --include /root --include /prgs/work_place --include /etc --exclude '**' / test@backup.com::/backup
You could also just make an included directory list named include-list such as:

Code:
/var/www/html
/opt
/home
/root
/prgs/work_place
/etc
And then format your string like this:

Code:
rdiff-backup --include-filelist include-list --exclude '**' / test@backup.com::/backup

Last edited by halo14; 11-21-2008 at 07:02 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Don't understand howto use mirrordir or rdiff-backup with ssh spaceuser Linux - Newbie 0 08-16-2008 01:55 AM
Backup system ala rdiff-backup, but without mirror and with dst encryption dr_dex Linux - Software 0 08-04-2008 04:39 AM
Need command-line method of creating CD backup philwynk Linux - Newbie 2 02-05-2008 03:17 PM
rdiff-backup and ssh - I'm a bit confused TheFourthDoctor Linux - Software 4 08-14-2007 03:24 PM
rdiff-backup problem dave`2005 Linux - Software 0 03-19-2006 04:16 PM


All times are GMT -5. The time now is 09:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration