LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-26-2014, 09:57 PM   #1
mintvx
Member
 
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 09:59 PM.
 
Old 09-26-2014, 10:04 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,870

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
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, 10:08 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,342
Blog Entries: 12

Rep: Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730
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, 10:08 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,750

Rep: Reputation: 271Reputation: 271Reputation: 271
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
 
  


Reply


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 11:24 AM
text files and their automatic backup files AGazzaz Linux - General 1 07-01-2006 08:38 AM
How to backup files? yuchen99 Red Hat 6 04-23-2005 10:36 PM
backup files davidleroux1 Mandriva 0 12-01-2004 07:32 PM
Your way: Backup - what files, how often, on CD-(RW)? JZL240I-U Linux - General 8 07-24-2003 03:49 PM


All times are GMT -5. The time now is 06:49 AM.

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