Re: : Remote rsync question
Vic Gedris <[email protected]>
| Newsgroups | gmane.org.user-groups.linux.tolug |
|---|---|
| Message-ID | <CAGJJbzEt27OCup_k==cE6fQ0XpP=jQbQ-TUmuj-Nud0-QnRMPA@mail.gmail.com> |
You may also want to use "--delete" so that your remote copy doesn't keep copies of deleted files forever. -Vic On Wed, May 7, 2014 at 3:32 PM, Marcelo Cavalcante <[email protected]> wrote: > Hello Walter, > > I do use rsync to make a backup of my home in the cloud (a server on the cloud). > > That´s what I´m using: > > #!/bin/bash > rsync -Cravzp --progress ./ --exclude=".*/" --exclude="Videos/Filmes/" > --exclude="Virtual*/" --exclude="isos/" > myuser@myserver:/home/myuser/mydir/backups/ > > As you can see, |´m using a simple rsync, excluding only what I don´t > want to be send. > =================================================== > > Marcelo Cavalcante Rocha - Kalib > > > Pós-Graduando em Governança de Tecnologia da Informação - ESTÁCIO/FIC > Graduado em Sistemas de Informações - ESTÁCIO/FIC > Usuário Linux #407564 | Usuário Asterisk #1148 > Fortaleza - Ceará - Brazil > Celular: +55 085 87620983 > Certificações: ITIL V3 | CSM | LPI-C1 | LPI-C2 | LPI-C3 | Novell CLA > Minha Pessoa: Blog > Projetos: Tux-CE | Archlinux-br | Chakra | KDE Brasil | TLUG | PUG-CE > > =================================================== > > > Proteja meu endereço como estou protegendo o seu. > Não revele e-mail dos correspondentes: use Cco (Copia Carbonada Oculta). > Retire os endereços antes de reenviar. Dificulte assim a > disseminação de vírus e spam. > > > 2014-05-07 16:27 GMT-03:00 Walter Dnes <waltdnes-SLHPyeZ9y/[email protected]>: >> The goal is to copy most of my home directory to another machine. In >> this case machine "aa1" (Acer Aspire One) over ssh. Is the following >> format correct? >> >> #!/bin/bash >> cd /home/waltdnes/ >> rm /home/waltdnes/rsync_log.txt /home/waltdnes/rserrors*.txt >> rsync --archive --links --group --itemize-changes --owner \ >> --perms --progress --recursive --size-only --stats --verbose \ >> --exclude-from=/home/waltdnes/.rsexclude \ >> --log-file=/home/waltdnes/rsync_log.txt \ >> /home/waltdnes/ aa1:/home/waltdnes/ 2>/root/rserrors1.txt >> >> .rsexclude would have entries like... >> /home/waltdnes/camera >> >> -- >> Walter Dnes <waltdnes-SLHPyeZ9y/[email protected]> >> I don't run "desktop environments"; I run useful applications >> -- >> The Toronto Linux Users Group. Meetings: http://gtalug.org/ >> TLUG requests: Linux topics, No HTML, wrap text below 80 columns >> How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists > -- > The Toronto Linux Users Group. Meetings: http://gtalug.org/ > TLUG requests: Linux topics, No HTML, wrap text below 80 columns > How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists -- The Toronto Linux Users Group. Meetings: http://gtalug.org/ TLUG requests: Linux topics, No HTML, wrap text below 80 columns How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists