Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-26-2014, 08:57 PM   #1
Registered: Aug 2014
Distribution: Debian 7.0
Posts: 100

Rep: Reputation: Disabled
backup files

Where usually should be stored backup files, when make backup of some system files before changing it settings? Should it be stored in the root account directory or in the user account directory?

Last edited by mintvx; 09-26-2014 at 08:59 PM.
Old 09-26-2014, 09:04 PM   #2
LQ Guru
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,298

Rep: Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386
If you just want a copy of the original when making changes, just make to copy in the same directory by renaming it. Something like the fstab file change to fstab.bak as an example..
Old 09-26-2014, 09:08 PM   #3
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,632
Blog Entries: 16

Rep: Reputation: 3246Reputation: 3246Reputation: 3246Reputation: 3246Reputation: 3246Reputation: 3246Reputation: 3246Reputation: 3246Reputation: 3246Reputation: 3246Reputation: 3246
If I'm tinkering with only one or two files, I usually back them up in their original directory by coping them to [filename].bak.

Ultimately, though, a backup is not a backup unless it's backed up to external media, such an external drive, a USB stick, an optical disk, or a network share on another computer. Then, if I blow up the original install or the hard drive fails, the files will be still be available to be restored. If I'm doing a Debian dist-upgrade, for example, I will certainly back up files to external media.
Old 09-26-2014, 09:08 PM   #4
LQ Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,863

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
I usually store them right next to the original, i.e.


The you can switch back and forth between your new and old configuration by simply copying files:

cp /etc/ /etc/fstab

if you have an oops then:

cp /etc/fstab.old /etc/fstab

Steve Stites


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup files nesta Linux - Newbie 1 12-18-2006 10:24 AM
text files and their automatic backup files AGazzaz Linux - General 1 07-01-2006 07:38 AM
How to backup files? yuchen99 Red Hat 6 04-23-2005 09:36 PM
backup files davidleroux1 Mandriva 0 12-01-2004 06:32 PM
Your way: Backup - what files, how often, on CD-(RW)? JZL240I-U Linux - General 8 07-24-2003 02:49 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:07 PM.

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