Backup data from Bubba to external drive using Rsync

From BubbaWiki
Revision as of 11:52, 7 October 2010 by Asad (talk | contribs) (Created page with 'Backup data from Bubba to external drive using Rsync You can create a manual backup of all your data to an external drive. Please note that you must have ntfs-3g installed in or...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Backup data from Bubba to external drive using Rsync

You can create a manual backup of all your data to an external drive. Please note that you must have ntfs-3g installed in order to
copy data to a hard drive with NTFS partition. You maye also schedule this command using cron. This command will first run a full backup, and then run a differential backup,
which means that if any file is added or deleted on the source, that change will also happen the next time the backup is run on the destination.
Warning: Remove the --delete-delay option if you want to keep old files on the destination that have been updated/changed on the source since the last time. Otherwise they will be removed.

It is recommended to keep an offline copy of your data and backup the changes once a week or when needed. Also be very careful with the paths, otherwise you may loose data!

rsync -rav --delete-delay /path/to/source/ /path/to/destination/

The following explanation can be found at: http://www.samba.org/ftp/rsync/rsync.html

-r, --recursive
This tells rsync to copy directories recursively. See also --dirs (-d).

-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).

-v, --verbose
This option increases the amount of information the daemon logs during its startup phase.

--delete-delay
Request that the file-deletions on the receiving side be computed during the
transfer (like --delete-during), and then removed after the transfer completes.