Setup backup

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Setup backup

Postby idiotkiwi on Fri Jun 15, 2007 6:44 pm

There is much discussion about backing up before making changes. Coming from Windows, the process in Linux seems complicated.

I have installed Simple Backup and would like to backup to a separate partition so I can reinstall the OS if necessary. I tried following the instructions as if for a separate Home (which had worked for me in Bianca) but failed. I can backup to var OK and could copy from there but there must be a better way. Googling brought up some very (to me) complex routines.

Two questions - Is simple Backup a reasonable choice?
- What is the best way to put it on to its own partition.

Thanks

Euan
idiotkiwi
Level 2
Level 2
 
Posts: 58
Joined: Fri Feb 02, 2007 2:44 am
Location: Christchurch New Zealand

Linux Mint is funded by ads and donations.
 

Re: Setup backup

Postby KrazyPenguin on Fri Jun 15, 2007 7:53 pm

idiotkiwi wrote:There is much discussion about backing up before making changes. Coming from Windows, the process in Linux seems complicated.

I have installed Simple Backup and would like to backup to a separate partition so I can reinstall the OS if necessary. I tried following the instructions as if for a separate Home (which had worked for me in Bianca) but failed. I can backup to var OK and could copy from there but there must be a better way. Googling brought up some very (to me) complex routines.

Two questions - Is simple Backup a reasonable choice?
- What is the best way to put it on to its own partition.

Thanks

Euan


Lots O discussion here:
http://ubuntuforums.org/showthread.php?t=35087

I am also writing a simple script to do this.
Worked on it today and it works and I know nothing about scripting :shock:
Need to add some finishing touches like some options, saved configs, etc.
But for now just use that tar command and copy and paste it somewhere on your system.
Then just paste in the terminal when you want to back up.
I hate full system backups. I try so many distros and do fresh installs often enough, all I need is /home and /stuff and I am good to go.
Yes, I AM A DISTRO HOPPER !!! :shock:
But since not so many distros support my laptop, I am sticking with Ubuntu/Mint.

Good Luck !!!
;-)
KrazyPenguin
Level 1
Level 1
 
Posts: 46
Joined: Thu Jun 14, 2007 9:59 pm

Postby Husse on Sat Jun 16, 2007 3:38 pm

The only thing I use Windows for now is to let Acronis True Image Workstation make backups of my partitions. I paid some 80 € for it and it is really good.
And while it does its job I play "Spider" :)
If you want to do backups as diskimages there are some in Synaptics but they need to be run with the disks unmounted so you must boot from CD
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19703
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: Setup backup

Postby scorp123 on Sun Jun 17, 2007 12:50 pm

idiotkiwi wrote:Coming from Windows, the process in Linux seems complicated.
Nonsense! :twisted:

For a idiot-proof backup all you need is tar and gzip .... these two programs are installed per default on every Linux distribution and on every Live CD I know in this Universe :D

Please remember these important words:

Every backup procedure is only as good as the restore procedure to get your data back!

In other words: Installing third-party add-on products is highly useless and not helpful when disaster strikes as getting your data back will obviously be a complicated affair!

My advice: Stick to the built-in tools of the system! They can do what you want and restoring data is simple for the needed programs are easily available on every distro and every Live CD! Apply the K.I.S.S. principle: Keep it simple and stupid.

That link you were given above is all you need. :D
User avatar
scorp123
Level 8
Level 8
 
Posts: 2287
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Postby newW2 on Sun Jun 17, 2007 2:12 pm

I must agree. scorp123's discussion on another post has worked well for backing up home and / or parts of home (like those huge music directories that you may not find pleasure in re-establishing after the crash). The commands are simple and so useful to me that I keep a Tomboy - how to note on hand, for those senior moments. :wink:

scorp123 wrote:
...as root: ...
Code:
cd / && tar -pczvf Home_Backup.tar.gz /home
... and then unpack everything again when you need it (as root !!): ...
Code:
cd / && tar -pzxvf /path/to/archive.tar.gz

These commands should create OK copies of your /home ... The tar method has the advantage that you get to keep a nice archived backup copy of your /home that you could use on other systems too ... or you could use it again and again and again in case of re-installations ... Wink


and adding --exclude/whatever directory (like a large music collection) makes everything fit on one disk.
User avatar
newW2
Level 6
Level 6
 
Posts: 1081
Joined: Fri Apr 06, 2007 10:24 am
Location: USA

Setup Backup

Postby idiotkiwi on Tue Jun 19, 2007 12:20 am

Hi guys,

Thanks for the advice.

Messages taken to heart.

KrazyPenguin. I had read that Ubuntu forum. 32 pages of comment was what made me think it was complicated.

Regards

Idiotkiwi.
idiotkiwi
Level 2
Level 2
 
Posts: 58
Joined: Fri Feb 02, 2007 2:44 am
Location: Christchurch New Zealand

Postby Boo on Tue Jun 19, 2007 12:35 am

I agree if a solution can not be found in 1 or 2 pages then it is not worth reading further.

If a thread needs to go for 32 pages then it should be broken up into different questions/threads.

am i off topic yet?

:lol:
Image
Now where was i going? Oh yes, crazy!
User avatar
Boo
Level 8
Level 8
 
Posts: 2364
Joined: Mon Mar 26, 2007 7:48 am

Postby Husse on Tue Jun 19, 2007 5:49 am

f a thread needs to go for 32 pages then it should be broken up into different questions/threads
am i off topic yet?

Slightly but you have a very valid point. Why do you think I split posts and (gently I hope) ask people to start a new thread for a new question :)
That some people feel offended by that I'll have to accept :)
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19703
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Postby lavs23 on Tue Jun 19, 2007 7:22 am

might want to take a look at sbackup. I use that because you can back up to an ftp server. Which is very handy as my laptop has approx. 0 free space.
lavs23
Level 1
Level 1
 
Posts: 30
Joined: Tue Mar 13, 2007 12:00 pm

Simple Backup

Postby idiotkiwi on Wed Jun 20, 2007 4:00 am

Hi Lavs23

sbackup is, I am pretty sure, exactly the same program as my original inquiry.

See http://sbackup.sourceforge.net/HomePage.

"Welcome to SBackup Wikka site!

This site is the concentration of all documents related to Simple Backup Suite, a.k.a. SBackup. "

Regards
idiotkiwi
Level 2
Level 2
 
Posts: 58
Joined: Fri Feb 02, 2007 2:44 am
Location: Christchurch New Zealand

Postby blogger on Mon Jun 25, 2007 6:37 am

scorp123 wrote:
Quote:
Apply the K.I.S.S. principle: Keep it simple and stupid.

...as root: ...
Code:
cd / && tar -pczvf Home_Backup.tar.gz /home
... and then unpack everything again when you need it (as root !!): ...
Code:
cd / && tar -pzxvf /path/to/archive.tar.gz

These commands should create OK copies of your /home ... The tar method has the advantage that you get to keep a nice archived backup copy of your /home that you could use on other systems too ... or you could use it again and again and again in case of re-installations ... Wink

Ok fellows,
I tried the Scorp 123 formula above. It works very well! But I did it the 'stupid way' :) --- I left my home network connection on!
So, I backed up so much stuff that my root partition could not take it (3.6GB).
I am trying to delete the /Home_Backup.tar.gz from my computer, but I am denied permission to do it.
Can somebody help me get rid of this tar file?
Please give step by step instructions, since I am not very apt with shell commands.
How about it Scorp123?

Thanks in advance,
Blogger
blogger
Level 4
Level 4
 
Posts: 329
Joined: Sat May 05, 2007 6:00 am
Location: Freeland

Postby scorp123 on Mon Jun 25, 2007 7:49 am

Use sudo?
Code: Select all
sudo rm /path/to/offending/file.tar.gz
User avatar
scorp123
Level 8
Level 8
 
Posts: 2287
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Postby scorp123 on Mon Jun 25, 2007 8:00 am

Taken from my posting here:
http://www.linuxmint.com/forum/viewtopic.php?p=21808#21808

Quote from there:

awcreamsoda wrote:Is there any intuative backup software, with a GUI, that I could download and use for back up.
And how do you mean to perform a restore if disaster strikes? Every backup procedure is only as reliable as the restore procedure. Sure, there are GUI backup tools and you can install and use them ... But what if your system all of a sudden won't boot anymore? How do you then plan to get into that GUI tool ... ? And if you can't get into that GUI tool, how do you plan to get your data back? :lol:

You'd be better of to learn the super-duper powerful shell tools such as tar and gzip .... They work, GUI or not, and the tools are installed per default everywhere and will happily operate even from the most minimal live CD you can get.

I myself backup my stuff on external USB harddisks ... if disaster strikes again (and it already did several times) I can get my stuff back anywhere, anytime and I don't have to rely on GUI tools I probably won't be able to get into in the first place when the worst case happens :wink:

Code: Select all
sudo su -
cd /path/to/USB/disk
tar --one-filesystem -pzcvf BootFS_backup.tar.gz /boot
tar --one-filesystem --exclude=/tmp/* --exclude=/dev/* --exclude=/proc/* -pzcvf RootFS_backup.tar.gz /
tar --one-filesystem --exclude=/var/tmp/* -pzcvf VarFS_backup.tar.gz /var
tar --one-filesystem -pzcvf UsrFS_backup.tar.gz /usr
tar --one-filesystem -pzcvf HomeFS_backup.tar.gz /home


Of course, above code snippets need to be adapted, e.g. there is no point backing up /boot or /usr if you don't have those directories on separate mount points (in that case it would all be on the " / " file system).
User avatar
scorp123
Level 8
Level 8
 
Posts: 2287
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Postby blogger on Mon Jun 25, 2007 10:47 am

scorp123 wrote:Use sudo?
Code: Select all
sudo rm /path/to/offending/file.tar.gz


Thank you Scorp123,
With your help, I managed to remove the Home_backup tar file and freed my root partition from a few GBs.

Cheers,
Blogger

EDIT, June 26, 07
Why so much talk about backup schemes? :)
Could there be a simpler and easier way than Scorp's tar and gzip method?
One question though. The tar file is by default installed in the root File System. How can we install it elsewhere; a disk partition, a flash stick etc?
Thanks
SEVERELY ADDICTED TO MINT / CASSANDRA SYNDROME
Image
Image
blogger
Level 4
Level 4
 
Posts: 329
Joined: Sat May 05, 2007 6:00 am
Location: Freeland

Try This!

Postby JAK on Mon Sep 03, 2007 3:33 pm

blogger wrote:
scorp123 wrote:Use sudo?
Code: Select all
sudo rm /path/to/offending/file.tar.gz


Thank you Scorp123,
With your help, I managed to remove the Home_backup tar file and freed my root partition from a few GBs.

Cheers,
Blogger

EDIT, June 26, 07
Why so much talk about backup schemes? :)
Could there be a simpler and easier way than Scorp's tar and gzip method?
One question though. The tar file is by default installed in the root File System. How can we install it elsewhere; a disk partition, a flash stick etc?
Thanks


This might be of interest to you:

http://www.partimage.org/Main_Page
http://www.partimage.org/Screenshots

You can also search for "partimage" in synaptic :wink:

Having image backups is a must. You never know when your system will get trashed by a program or a hard drive crash. I make a complete image backup of my WindowsXP installation using Acronis Image every night while I sleeping. If anything ever goes wrong, I'm covered and I won't get that sick feeling in my stomach from loosing everything. Speaking from experience!
.
User avatar
JAK
Level 3
Level 3
 
Posts: 124
Joined: Tue Feb 27, 2007 8:42 am
Location: Central Florida

Re: Try This!

Postby scorp123 on Mon Sep 03, 2007 4:39 pm

JAK wrote: Having image backups is a must.
Hmmm. Having a complete system backup is a must, yes. But image backups have a few drawbacks: You not only backup your stuff (e.g. those portions where the data is located) but also the empty parts of the harddisk. That's overhead in my opinion. Also: what if you change disks or partition your disks differently? Having things in relatively "simple + stupid" archives has the advantage that you can unpack your stuff relatively quickly and uncomplicated wherever and whenever you want. Not all disk imaging software can match that as far as I know.
User avatar
scorp123
Level 8
Level 8
 
Posts: 2287
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Re: Try This!

Postby JAK on Mon Sep 03, 2007 7:08 pm

scorp123 wrote:
JAK wrote: Having image backups is a must.
Hmmm. Having a complete system backup is a must, yes. But image backups have a few drawbacks: You not only backup your stuff (e.g. those portions where the data is located) but also the empty parts of the harddisk. That's overhead in my opinion. Also: what if you change disks or partition your disks differently? Having things in relatively "simple + stupid" archives has the advantage that you can unpack your stuff relatively quickly and uncomplicated wherever and whenever you want. Not all disk imaging software can match that as far as I know.


You're probably right; there is more flexibility creating archives rather than images. It would seem to me the only thing needing backup are all the .conf files, maybe a few other non-.conf configuration files and everything under the /home directory. As far as everything else goes, a clean install and restoring the archives should be sufficient.
User avatar
JAK
Level 3
Level 3
 
Posts: 124
Joined: Tue Feb 27, 2007 8:42 am
Location: Central Florida

Postby Ede on Mon Sep 03, 2007 7:12 pm

It's pretty easy to backup everything you have installed too. Every deb-file for that is located in /var/cache/apt/archives.

cd /var/cache/apt/archives/
tar -cvf ~/Debian_debs_backup.tar *.deb

That's all.
When installing it again, you just untar the file into a folder and run a
Code: Select all
sudo dpkg -i *.deb

from that folder.

Easy peasy.
User avatar
Ede
Level 4
Level 4
 
Posts: 294
Joined: Thu Jun 14, 2007 7:02 pm
Location: Norway

Postby linuxviolin on Mon Sep 03, 2007 9:24 pm

scorp123 wrote: And how do you mean to perform a restore if disaster strikes? Every backup procedure is only as reliable as the restore procedure. Sure, there are GUI backup tools and you can install and use them ... But what if your system all of a sudden won't boot anymore? How do you then plan to get into that GUI tool ... ? And if you can't get into that GUI tool, how do you plan to get your data back?

Just for the record, Acronis Tue Image has a boot CD. Booting with it you take in the GUI for restoring (or creating images) your partition(s), so even with a system which don't boot, no problem with the CD and its GUI.:D
K.I.S.S. ===> "Keep It Simple, Stupid"
"Simplicity is the ultimate sophistication." (Leonardo da Vinci)
"Everything should be made as simple as possible, but no simpler." (Albert Einstein)
User avatar
linuxviolin
Level 8
Level 8
 
Posts: 2055
Joined: Tue Feb 27, 2007 6:55 pm
Location: France

Postby JAK on Mon Sep 03, 2007 9:29 pm

linuxviolin wrote:
scorp123 wrote: And how do you mean to perform a restore if disaster strikes? Every backup procedure is only as reliable as the restore procedure. Sure, there are GUI backup tools and you can install and use them ... But what if your system all of a sudden won't boot anymore? How do you then plan to get into that GUI tool ... ? And if you can't get into that GUI tool, how do you plan to get your data back?

Just for the record, Acronis Tue Image has a boot CD. Booting with it you take in the GUI for restoring (or creating images) your partition(s), so even with a system which don't boot, no problem with the CD and its GUI.:D


And it just so happens it's a Linux boot CD. I'll have to give it a shot, but I never tried using Acronis to backup a Linux system. I'll get back to you on that.
.
User avatar
JAK
Level 3
Level 3
 
Posts: 124
Joined: Tue Feb 27, 2007 8:42 am
Location: Central Florida

Linux Mint is funded by ads and donations.
 
Next

Return to Newbie Questions

Who is online

Users browsing this forum: No registered users and 34 guests