LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-24-2015, 06:27 PM   #1
katto
Member
 
Registered: Nov 2010
Distribution: Kubuntu 10.4
Posts: 46

Rep: Reputation: 16
Need some help with rsync backup


I want to keep a relatively fresh backup of my dual-boot laptop onto a 2tb NAS box that I connect to through NFS. I've done all my backups with dd so far and that works great if it's a one time backup only but an incremental, updated one won't work with that. Rsync seems to be the best tool for this but it's a bit complicated. So far, by reading the manual I've got this:

Code:
rsync -vaHAXi --stats --human-readable --progress --log-file=FILE /source /dest/backup
Does this look right? I'm not entirely sure about the -HAX and the link preservation. What I want to be able to do eventually is to be able to copy both the XP partition and the linux one onto the box, do incremental updates on them and if something breaks, be able to reverse the backup into the original partitions.

At the very least be able to fully copy the XP partition and it's data (binaries and configuration), the linux partition's binaries and configuration and if need be, somehow reinstall the particular distro and copy the binaries and confs into it.
 
Old 04-24-2015, 09:13 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,671
Blog Entries: 28

Rep: Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248
I understand what you mean about figuring out rsync. The command is so versatile and has so many possible arguments that finding the right combination can be overwhelming.

For backing up my own laptop, I use something much simpler:

Code:
rsync -a /[source] /[target]
I've found that adequate for my needs as a home user.
 
Old 04-24-2015, 09:47 PM   #3
katto
Member
 
Registered: Nov 2010
Distribution: Kubuntu 10.4
Posts: 46

Original Poster
Rep: Reputation: 16
Rsync is definitely complicated. Do your backups work in reverse? Meaning, in case of file corruption or disk failure, would you be able to do rsync /[destination] /[source] and have a working system? Or would you have to transfer all your data by hand? Also, without --delete doesn't your incremental backup get larger with files that don't exist in the source anymore?
 
Old 04-25-2015, 11:25 AM   #4
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 814

Rep: Reputation: 265Reputation: 265Reputation: 265
Yes, you will most likely want the "--delete" option.

One thing to keep in mind is that rsync won't backup your MBR. So if you really screw up and wipe your MBR you will have to fix that yourself.
 
Old 04-25-2015, 09:39 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,671
Blog Entries: 28

Rep: Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248Reputation: 6248
Quote:
Also, without --delete doesn't your incremental backup get larger with files that don't exist in the source anymore?
That's precisely why I don't use delete mode. Files I may no longer need on my laptop can stiff be found on my file server. There's ample HDD space over there.

Every six months or so, I go through the backups and clean out the dustbunnies.
 
  


Reply

Tags
backup, rsync


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Rsync Backup for Windows, Linux Knoppix, and Other Smart Technologies in Handy Backup by Novos LXer Syndicated Linux News 0 12-24-2011 12:43 PM
LXer: Backup with rsync and rsync.net LXer Syndicated Linux News 0 09-14-2010 05:20 PM
backup using rsync mkrems Linux - Software 6 04-04-2009 03:07 PM
Using RSync to backup a secondary off-site backup server pezdspencer Linux - Software 4 06-29-2007 04:40 PM
Using rsync to backup data. Best way to backup folders? Micro420 Linux - General 2 11-23-2006 02:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration