Fedora Linux Support Community & Resources Center
Old 5th September 2012, 06:00 PM
settingsun Offline
Registered User
Join Date: Aug 2011
Posts: 150
How do I use rsync to backup the fedora os?

I'm learning to use rsync. I read it is a good idea to back up the operating system settings along with the scripts I wrote. Things like configuration files, users, etc. That way, if a crash occurs, I don't have to rewrite the code or rebuild the operating system.

Is there a way for a working fedora os to hold a copy of it's own files (as a backup) without executing them? I don't want an os running on top of an os.

Can someone give me an example of a shell script that would do this?

Thank you
Reply With Quote
Old 5th September 2012, 08:55 PM
secipolla Offline
Registered User
Join Date: May 2011
Posts: 698
Re: How do I use rsync to backup the fedora os?

You would have to make the backup in another drive, I suppose, if you want to cover a hard-drive failure, otherwise you would back up to another partition.
Reply With Quote
Old 12th September 2012, 01:04 AM
ItsTheSource Offline
Registered User
Join Date: Apr 2006
Location: Richmond, VA
Age: 33
Posts: 57
Re: How do I use rsync to backup the fedora os?

If you want to backup important configuration files then I would use an include file. Although probably not syntactically correct it would look something like this:
# cat /root/rsync_backup.lst
+ /etc/shadow
+ /etc/passwd
+ /etc/group
- /etc/*
Then use the include-from option to specify the absolute path of the include file.
# rsync -vrlEpoght --stats --progress --delete --include-from=/root/rsync_backup.lst
Once you get everything working, you can use cron to back them up as often as you'd like. You can also sync them to dropbox if you sync them to a directory that dropbox is watching.
Reply With Quote

backup, fedora, rsync

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
backup scripts - rsync Adunaic Programming & Packaging 1 14th November 2010 03:22 PM
Making an rsync backup more robust? the poi Using Fedora 2 24th August 2009 08:01 AM
rsync backup question kieranhood Using Fedora 1 15th August 2006 03:33 PM
rsync backup script ieuuk Using Fedora 3 24th July 2005 12:49 PM
Backup, rsync, fedora and windows darkside Using Fedora 0 18th February 2005 02:17 AM

Current GMT-time: 02:46 (Monday, 25-09-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat