Re: making fc20 backup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/11/2014 03:33 PM, Joe Zeff issued this missive:
On 07/11/2014 03:21 PM, Jackson Byers wrote:
What I am still very uncertain :

how to handle, ie backup,
dirs like
/dev, /proc, /sys, /srv
/media, /run

Don't.  I'm not sure about /sys and /srv, but the rest are created by
the system at boot, and all you would do by "restoring" them would be to
fsck your system up completely.

I use this sort of thing to back up to a directory named after the
machine and the date located on a USB hard drive mounted at
/run/media/Rick/USBDrive/backups:

rsync -avXA --exclude-from=/etc/skipdirs.rsync / /run/media/Rick/USBDrive/backups/`hostname`-`date +%d-%m-%Y-%T`

and where the contents of /etc/skipdirs.rsync is:

	/proc/*
	/sys/*
	/dev/*
	/media/*
	/run/media/*
	**/.cache/google-chrome/***
	**/.ccache/***

/proc, /sys and /dev are dynamically created at boot so backing them
up is sort of a bad idea (well, backing them up is OK but restoring them
would be bad).

I don't back up /run/media or /media simply because I don't want to
back up removable media--especially anything I'm backing up TO (circular
references anyone?) I also don't back up various caches (and it's
shocking how much of that cruft there is).

If you want, you can back up /srv. RHEL-related systems (RHEL, CentOS,
Fedora) generally don't use it. Some distros use it for the webroot,
e.g. /srv/www or or other "sharable" or "servable" content. It's not a
dynamically created filesystem like /proc or /sys or /dev. Your choice.

For what it's worth, I have also used MondoRescue and Clonezilla with
success if you need to restore to bare metal after a total meltdown.

Just a suggestion. Your mileage may vary.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ricks@xxxxxxxxxxxxxx -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
-     If you can't beat your computer at chess...try kickboxing!     -
----------------------------------------------------------------------
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux