agree with Gustin. I mostly use one of
rsync -av <src> <dest>
rsync -auv <src> <dest>
occasionally add --delete when feeling brave or want to clean out old files
-v or --verbose I affectionately call the 'Oh Shit! <ctl> C " option
nice first time you try a command and <src> or <dest> weren't quite what you
meant :-[
after initial copy, the list shows you what files are changing - occasionally
gives insightful hint
On 14-05-04 12:03 AM, Gustin Johnson wrote:
> From the documentation:
> "--help Print a short help page describing the options available in rsync and
> exit. For backward-compatibility with
> older versions of rsync, the help will also be output if you use the -h
> option without any other args".
>
> Also from the documentation, having the "r" flag is redundant, though not
> problematic (it is not doing any harm, it
> just makes your command slightly harder to debug).
> "-a, --archive This is equivalent to -rlptgoD. It is a quick way of saying
> you want recursion and want to preserve
> almost everything (with -H being a notable omission). The only exception to
> the above equivalence is when
> --files-from is specified, in which case -r is not implied.
>
> Note that -a does not preserve hardlinks, because finding multiply-linked
> files is expensive. You must separately
> specify -H".
>
> I do not see how the command that you ran would delete files from the source
> directory. It certainly would not have
> deleted anything from your root ("/"). I did not see the use of sudo in your
> example, without which rsync would
> simply not have had the requisite permissions to do some damage to the base
> OS. Something else happened on your
> system *other* than that rsync command.
>
> If you really just want a simple solution that backs up your home folder,
> rdiff-backup is what I use in this exact use
> case. There are also quite a few other options, and the default Ubuntu
> backup program (I forget what it is called)
> seems to do a good job of this as well. You really want to automate your
> backups so I would look at options that
> either do this directly or are easily run from cron.
>
>
> On Sat, May 3, 2014 at 7:53 PM, Joe S <[email protected]
> <mailto:[email protected]>> wrote:
>
> I see 2 entries in man rsync. I thought that was the first.
>
> -h, --human-readable output numbers in a human-readable
> -h, --help show this help (if used after
> --daemon)
>
> On Sat, 03 May 2014 10:15:24 -0600
> caziz <[email protected] <mailto:[email protected]>> wrote:
>
> > -h is just help. case matter did you mean -H??
> >
> >
> > On 14-05-03 07:28 AM, Joe S wrote:
> > > This is the command I used:
> > > rsync -avrh --numerical-ids /home/joe /media/backup/
> > >
> > > --numerical-ids is the only mistake I can see. /media/backup
> > > is a second drive that I used for backup. I've used rsync
> > > for a number of years and never had a problem before.
> > >
> > > On Fri, 02 May 2014 22:50:22 -0600
> > > Bogi <[email protected] <mailto:[email protected]>> wrote:
> > >
> > >> Hi Joe,
> > >> You should post your complete command line. -avrh does not
> > >> designate a deletion of files, --numeric-ids only designates
> > >> how to transfer the ids of the owner in terms of user and
> > >> group, the default is username and group name, otherwise, it
> > >> will transfer the numeric values of userid and groupid.
> > >> Still no indication to delte originals. So please post the
> > >> full command line so we can replicate the problem.
> > >>
> > >> Cheers
> > >> Sam
> > >>
> > >> On May 2, 2014 Friday 21:00:02 Joe S wrote:
> > >>> I did a backup with rsync today and had a problem. I used
> > >>> this command: rxync -avrh /home/joe /media/backup/
> > >>> I realized --numerial-ids should have been numeric-ids, but
> > >>> a little to late. Rsync only copied some of the files over
> > >>> and erased a lot of my installation in /home and / . I had
> > >>> to reinstall. My question is why wouldn't rsync complain if
> > >>> the option was wrong? Or was this something else that is a
> > >>> problem?
> > >>>
> > >>> Thanks
> > >>>
> > >>> _______________________________________________
> > >>> clug-talk mailing list
> > >>> [email protected] <mailto:[email protected]>
> > >>> http://clug.ca/mailman/listinfo/clug-talk_clug.ca
> > >>> Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
> > >>> **Please remove these lines when replying
> > >>
> > >> _______________________________________________
> > >> clug-talk mailing list
> > >> [email protected] <mailto:[email protected]>
> > >> http://clug.ca/mailman/listinfo/clug-talk_clug.ca
> > >> Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
> > >> **Please remove these lines when replying
> > >
> > > _______________________________________________
> > > clug-talk mailing list
> > > [email protected] <mailto:[email protected]>
> > > http://clug.ca/mailman/listinfo/clug-talk_clug.ca
> > > Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
> > > **Please remove these lines when replying
> > >
> >
> >
> > _______________________________________________
> > clug-talk mailing list
> > [email protected] <mailto:[email protected]>
> > http://clug.ca/mailman/listinfo/clug-talk_clug.ca
> > Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
> > **Please remove these lines when replying
>
>
> _______________________________________________
> clug-talk mailing list
> [email protected] <mailto:[email protected]>
> http://clug.ca/mailman/listinfo/clug-talk_clug.ca
> Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
> **Please remove these lines when replying
>
>
>
>
> _______________________________________________
> clug-talk mailing list
> [email protected]
> http://clug.ca/mailman/listinfo/clug-talk_clug.ca
> Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
> **Please remove these lines when replying
_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying