Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian User (http://www.linux-archive.org/debian-user/)
-   -   Backup home directory with rsync (was: rsync issue) (http://www.linux-archive.org/debian-user/434583-backup-home-directory-rsync-rsync-issue.html)

Rodolfo Medina 10-02-2010 10:18 AM

Backup home directory with rsync (was: rsync issue)
 
Rodolfo Medina <rodolfo.medina@gmail.com> writes:

> I wish to copy all my home directory into another machine with the --delete
> option, but:
>
> 1) I dont't want hidden files, i.e.: `.*' to be copied;
>
> 2) on the other hand, there are some symlinks, beginning with `.', that I
> want to be copied.
>
> The --exclude option won't help.



The following seems to be fine for me:

$ cd
$ rsync -vrtu --delete --exclude='/.*' . 192.168.0.2:/home/rodolfo

, where `192.168.0.2' is the address of the destination computer. Hidden files
from the top level directory are not tansferred, all the others are, which is
what I want. Symlinks are better created by hand. I *highly* recommend anyone
to first use the `--dry-run' option before actually run the command, as the
--delete option is very dangerous!

Bye
Rodolfo


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87k4m0gap2.fsf@gmail.com">http://lists.debian.org/87k4m0gap2.fsf@gmail.com


All times are GMT. The time now is 08:00 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.