Re: remote tar via ssh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]







Thank you so much for helping me

Now I am trying to use the following command to backup
all files in hda to sda3 (mount on seconddrive folder)
in the same machine and also excludes

/usr/bin/rsync -avz --exclude=/boot1
--exclude=/seconddrive --exclude=/proc /* /seconddrive

try below .
it copies /opt/maildaily/maildaily.tar.gz to /mnt/maildaily

/usr/bin/rsync -a /opt/maildaily/maildaily.tar.gz /mnt/maildaily

FOR more, pls understand below  command  and its  meaning.

rsync -avz --delete --exclude=**/stats --exclude=**/error --exclude=**/files/pictures -e "ssh -i /root/rsync/mirror-rsync-key" someuser@xxxxxxxxxxxxxxxxxxx:/var/www/ /var/www/

(The --delete option means that files that have been deleted on server1.example.com should also be deleted on mirror.example.com. The --exclude option means that these files/directories should not be mirrored; e.g. --exclude=**/error means "do not mirror /var/www/error". You can use multiple --exclude options. I have listed these options as examples; you can adjust the command to your needs. Have a look at


another URL to read,

http://www.howtoforge.com/mirroring_with_rsync_p2

GOOD LUCK



> Thank you
> Indunil Jayasooriya
>



      ____________________________________________________________________________________
Luggage? GPS? Comic books?
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz



--
Thank you
Indunil Jayasooriya
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux