LinuxQuestions.org
Visit Jeremy's Blog.
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, 08:57 PM   #1
mintvx
Member
 
Registered: Aug 2014
Distribution: Debian 7.0
Posts: 101

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
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,443

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
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
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,272
Blog Entries: 28

Rep: Reputation: 6123Reputation: 6123Reputation: 6123Reputation: 6123Reputation: 6123Reputation: 6123Reputation: 6123Reputation: 6123Reputation: 6123Reputation: 6123Reputation: 6123
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
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,334

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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:08 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
Open Source Consulting | Domain Registration