[SOLVED] rsync backup exclude directory discussion - from running OS on ext4 journaling part
Linux - GeneralThis 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.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
There is less than 24 hours left to vote in the 2015 LinuxQuestions.org Members Choice Awards. Click here to go to the polls. Vote now and make sure your voice is heard!
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
This is the script I use to backup my $HOME directory. Rather than passing a long list of --exclude='s, I keep a file with a list of things to include and exclude. I back up to another machine in my basement running rsync as a server using cron. I think the list of files/directories is easier to manage than a grunch of --exclude='s.
It is quite a lot of directories. Had/has to take systematic work.
(If you have some spare time you could please to share this exclude/include file (for example by dropbox) on internet to have its always fresh for public)
I made clone by rsync of the whole / directory (excluding unnecessary dirs) to another ext4 partition.
Made some changes in /etc/hosts,hostname,fstab,gtags/htmake.conf and maybe some another config files and update-grub,
if update-grub did not succed put it in 40_custom file manually and that was all I did and it works. I used this clone of ubuntu OS just three times but without problems for now :-)
(what I have problem is use it on gpt(uefi) hard-disk/partition/s. Need more study how to properly install grub2 to avoid C/H/S error messages - it still does not work even manually created menuentry for grub2 config/s)
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Why do so complicated? You are right that this is very clean, but if you omit the excludes, a few gigs more might be backed up. I don't worry about it, it is much more difficult to be sure that not too much s excluded.
These really have to be excluded:
If you want to restore your system, you should not exclude /dev!
If you want to clone, it might be a good idea to exclude some udev rules, like persistent_net_rules if your system has that. When you don't, usually the new system reserves eth0 or eth1 for the NIC in the other system and tries to make eth2 work.