LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-24-2010, 02:56 AM   #1
noelc
Member
 
Registered: Apr 2009
Location: Sydney
Distribution: Ubuntu
Posts: 103

Rep: Reputation: Disabled
Best backup solution


I,m using Ubuntu 10.10 with Gimp. Ive got a lot of photos etc and need to back these up. Can I anyone suggest a good backup solution which does not require e to keep copying the same files? IE: Once the files are backed up I only want to back the files used since last back up? Appreciate suggestions
 
Old 10-24-2010, 04:36 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Take a look at rsync or grsync
http://www.opbyte.it/grsync/
http://samba.anu.edu.au/rsync/documentation.html

Kind regards

Last edited by repo; 10-24-2010 at 04:38 AM.
 
Old 10-24-2010, 11:01 AM   #3
fair_is_fair
Member
 
Registered: May 2005
Posts: 516

Rep: Reputation: 52
I love Luckybackup. Basically a gui front end for rsync. Really easy to use and it will sync directories. It is available via the "software centre" or synaptic.
 
Old 11-30-2010, 11:02 AM   #4
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Rep: Reputation: 32
Hi, I would grateful if someone could show me a good way to back up and restore my personal data. I prefer to work from the terminal purely for learning purposes. I will certainly look at the apps suggested above. Initially I was thinking of creating a script containing to create tar ball the compress with bzip2


Code:
tar -cf tarfile.tar destination_directory

bzip2 tarfile.tar destination_directory
I would then extract in a single line

Code:
bzip2 -cd tarfile.tar.bz2 destination_directory
But this is obviously inefficient if I was to backup every three days. I want a way to backup only files that have been changed and leave the unchanged alone. I don't want to save the whole home directory which will include unnecessary system settings. Can anyone help?
 
Old 11-30-2010, 11:45 AM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
You should start your own thread.
However,
rsync can do this, you can exclude directories, compress the files, and backup only new or changed files.

Kind regards

Last edited by repo; 11-30-2010 at 11:46 AM.
 
Old 11-30-2010, 12:05 PM   #6
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Rep: Reputation: 32
Hi Repo, wpeckham suggested I should NOT create a new thread and tag onto a similar one. Since posting I have installed luckyback and it seems to be good application. I still would appreciate the core shell commands to create my own script.
 
Old 11-30-2010, 12:10 PM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
wpeckham said
Update an existing thread or question, but do not duplicate threads.
He meant you need to update the thread you started, not to hijack another thread
http://www.linuxquestions.org/questi...estore-847076/

Kind regards

Last edited by repo; 11-30-2010 at 12:11 PM.
 
Old 11-30-2010, 12:46 PM   #8
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Rep: Reputation: 32
He said 'repost' and update an existing thread as apposed update 'this' thread which threw me off. I do my best to work with everybody. I think you will agree that in all my threads I am careful not to make personal remarks even if the responses are unsatisfactory. The term hijacking was uncalled for.
 
1 members found this post helpful.
Old 11-30-2010, 03:11 PM   #9
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Unsure if this thread is hiijacked or not in the right place -- but I do have the answer to the question that was asked.

If you are looking to backup your User Directory, which on linux is /home/some-user-name, the easiest way I know of is using Rsync.

rsync -varh --progress --delete /home/some-user-name/ /media/some-destination/

Basically rsync (from) (to)

Notes:

DO NOT USE WILDCARDS. /home/some-user-name/ with the trailing forward slash will copy *all* contents including . hidden files and weirdly spaced names.

-v = verbose
-a = archive (keep attributes and permissions)
-r = recursive (go into directories)
-h = human readable (1.6m rather than 1691982)
--progress = readable progress indication on screen
--delete = delete any destination files that are not on the source. (For example, if you run this command, then delete a file from your home directory, and run this command again, rsync will notice that the file is not in your home directory anymore, and delete it from the destination media.) You can leave this option out, if you want to keep an ongoing archive of files, even if you delete them from your home directory, but this might cause certain programs to run weird or not at all.
 
1 members found this post helpful.
Old 11-30-2010, 04:29 PM   #10
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Rep: Reputation: 32
Thanks, actually I am not bothered by the settings. All I want is to backup personal data stored in the home directory using shell commands as described above. I have already installed luckybackup which seems to be a good GUI app, I just want the command line solution.


Cheers
 
Old 11-30-2010, 05:50 PM   #11
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Maybe make a script to find by date or some and then port the output to a tar or gzip command and then to some storage area. Since you know pretty much what you want it ought to be similar each time.

Rsync can be used too from command line.
 
Old 11-30-2010, 06:15 PM   #12
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Rep: Reputation: 32
Thanks!
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup Solution LazerPhreak Linux - Software 10 02-13-2010 03:35 PM
Help with backup solution pitt30 Slackware 14 08-06-2009 02:35 PM
backup solution nima0102 Linux - Server 2 05-08-2009 11:02 PM
backup solution matrolinux Linux - Enterprise 10 12-28-2007 08:08 AM
Backup solution ~=gr3p=~ Linux - Software 1 02-17-2006 06:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:09 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