FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

LinkBack Thread Tools
Old 10-02-2010, 10:18 AM
Rodolfo Medina
Default 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='/.*' .

, where `' 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!


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

Thread Tools

All times are GMT. The time now is 01:34 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org