LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   backup files (https://www.linuxquestions.org/questions/linux-newbie-8/backup-files-4175520239/)

mintvx 09-26-2014 08:57 PM

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?

yancek 09-26-2014 09:04 PM

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..

frankbell 09-26-2014 09:08 PM

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.

jailbait 09-26-2014 09:08 PM

I usually store them right next to the original, i.e.

/etc/fstab
/etc/fstab.new
/etc/fstab.old

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

cp /etc/fstab.new /etc/fstab

if you have an oops then:

cp /etc/fstab.old /etc/fstab

-------------------------
Steve Stites


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