[CentOS] remote tar via ssh

Tue Oct 2 10:44:01 UTC 2007
Indunil Jayasooriya <indunil75 at gmail.com>

>
> 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 at server1.example.com:/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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20071002/aa009c1b/attachment-0005.html>