LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   rsync - need some argument help (https://www.linuxquestions.org/questions/linux-software-2/rsync-need-some-argument-help-106893/)

bkeating 10-21-2003 06:25 PM

rsync - need some argument help
 
I would like to copy all paritions from computer1 to a directory on a backup partition on computer2 except for /proc /tmp /usr/home (but still copy the rest of /usr).


I have been dealing with this problem all day and have a few backups but would like to rsync the ENTIRE system over to a remote directory, just to play it safe.

my paritions are this;


Code:

Filesystem        Size  Used  Avail Capacity  Mounted on
/dev/da0s1a        252M    93M  138M    40%    /
/dev/da0s1e      1008M  140K  927M    0%    /tmp
/dev/da0s1g        301M  179M    99M    64%    /oldusr
/dev/vinum/usr      90G  4.8G    78G    6%    /usr
/dev/da0s1f        5.9G  630M  4.8G    11%    /var
procfs            4.0K  4.0K    0B  100%    /proc
second:/usr/home    56G    49G  2.1G    96%    /usr/home

Again, I'd like to copy all but(!) /tmp /proc /usr/home

and within / I have no need to copy /dev



So far, this is what im considering using at the cmd line;

Code:

rsync -arzlpxP --exclude=/dev/*  /  root@192.168.1.5:/backup
what are your thoughts?


All times are GMT -5. The time now is 10:49 PM.