<div dir="ltr"><div>Looking at the rsync command you gave, it looks correct -- but rsync can do so much more when backing up!<br><br></div>Using the magic of rsync, and the magic of hardlinks, you can make a full backup, in incremental time and space. Rsync has, built into it, the ability to compare your most recent backup files with existing backup files, and if they are they same, use a hard link, and copy them over if they differ. This allows you to store just the files that change -- but it looks like a full backup every time it runs. This way, you can keep, say, hourly backups for the last week -- and recover an accidentally deleted or altered file, even after the latest backup has run.<br><div><br>For more details: <a href="https://blog.interlinked.org/tutorials/rsync_time_machine.html">https://blog.interlinked.org/tutorials/rsync_time_machine.html</a><br><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 4, 2015 at 8:21 AM, T L <span dir="ltr"><<a href="mailto:tlunde@gmail.com" target="_blank">tlunde@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Assuming that you have NOTHING on the drive that you care about, I would remove the factory partitioning and create a new GPT table with parted. </p>
<p dir="ltr">Then, format that as ext4. </p><div class="HOEnZb"><div class="h5">
<div class="gmail_quote">On Sep 3, 2015 3:17 PM, "Mike Miller" <<a href="mailto:mbmiller%2Bl@gmail.com" target="_blank">mbmiller+l@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">How to format?<br>
<br>
I have a couple of Linux boxes that I would like to regularly backup to a 5 TB external drive. It seems like it would be a good idea to format that drive with ext4. Can I just do that with gparted? The drive comes with NTFS format. Are there any issues I should know about?<br>
<br>
<br>
Which directories to back up?<br>
<br>
What really needs to be backed up? I guess if the system totally failed I'd install Linux (Ubuntu) again. Of course /home is needed, but /usr/local and /opt often have programs I've installed and /etc will have a bunch of settings. I guess /var can have some important stuff. Are crontabs stored in /var?<br>
<br>
<br>
Which software to use for backup?<br>
<br>
I guess I want only to have in backup what is on the originating drive. So if I have deleted a file, I want it to be deleted on the backup drive, too. I assume rsync can do this. Would this be correct?:<br>
<br>
rsync -av --update --delete /home /usr/local /etc /var /opt /media/me/back<br>
<br>
<br>
TIA!<br>
<br>
Mike<br>
_______________________________________________<br>
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota<br>
<a href="mailto:tclug-list@mn-linux.org" target="_blank">tclug-list@mn-linux.org</a><br>
<a href="http://mailman.mn-linux.org/mailman/listinfo/tclug-list" rel="noreferrer" target="_blank">http://mailman.mn-linux.org/mailman/listinfo/tclug-list</a><br>
</blockquote></div>
</div></div><br>_______________________________________________<br>
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota<br>
<a href="mailto:tclug-list@mn-linux.org">tclug-list@mn-linux.org</a><br>
<a href="http://mailman.mn-linux.org/mailman/listinfo/tclug-list" rel="noreferrer" target="_blank">http://mailman.mn-linux.org/mailman/listinfo/tclug-list</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Jeff Chapin<br>President, CedarLug, retired<br>President, UNIPC, "I'll get around to it"<br>President, UNI Scuba Club<br>Senator, NISG, retired</div>
</div>