Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Backup program?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
HomerSimpson
l33t
l33t


Joined: 25 Jan 2003
Posts: 869
Location: Ohio, USA

PostPosted: Thu Mar 27, 2003 4:24 am    Post subject: Backup program? Reply with quote

Is there a backup program that has a Gentoo ebuild?

I want to do file backups of all my computers on my network (all 2 of them). I just really need a simple file backup (and restore) but want to do it locally and over smbfs.

Thanks
_________________
The strong must protect the Sweet.
Back to top
View user's profile Send private message
chris4linux
Apprentice
Apprentice


Joined: 13 Nov 2002
Posts: 210
Location: Germany

PostPosted: Thu Mar 27, 2003 7:00 am    Post subject: Reply with quote

I think rsync is the best way to backup some files...(I use it too in LAN with samba shares).
you can also make a tarball...
Code:

cd /
tar -czvpf /mnt/backup/Gentoo_bak_201002.tar.gz / --exclude=/proc --exclude=/mnt --exclude=...

I've made a tarball of my root-system, /etc, /usr /bin etc. so I've the impotent files and can burn it on cd :-)

- Chris
_________________
NOTICE: alloc: /dev/null: filesystem full
Back to top
View user's profile Send private message
neilhwatson
l33t
l33t


Joined: 06 Feb 2003
Posts: 719
Location: Canada

PostPosted: Thu Mar 27, 2003 2:40 pm    Post subject: Reply with quote

Backups to media are good as long as you store in media off site. The best solution is for you and a buddy to backup via rsync to each other's boxes via the internet.

This will not work for your collection of music files unless you have MEGA bandwidth. However, for documents, websites, email and various config files rsync is ideal.
_________________
The true guru is a teacher.
Neil Watson
Back to top
View user's profile Send private message
slam_head
Guru
Guru


Joined: 06 Jan 2003
Posts: 449
Location: New York City

PostPosted: Thu Mar 27, 2003 8:54 pm    Post subject: Reply with quote

tar is the original backup program. It's simple and effective. If you backup needs aren't that complicated that's what I would go with. You could even create a script and put it in your crontab. Works well with tape also.
Back to top
View user's profile Send private message
Donovan
Tux's lil' helper
Tux's lil' helper


Joined: 08 Feb 2003
Posts: 97
Location: Halifax, NS, Canada

PostPosted: Tue May 13, 2003 3:35 am    Post subject: Reply with quote

chris4linux wrote:

I've made a tarball of my root-system, /etc, /usr /bin etc. so I've the impotent files and can burn it on cd :-)


Impotent? Uh oh...

Code:
$ make fertile

;)
Back to top
View user's profile Send private message
asimon
l33t
l33t


Joined: 27 Jun 2002
Posts: 979
Location: Germany, Old Europe

PostPosted: Tue May 13, 2003 8:02 am    Post subject: Reply with quote

neilhwatson wrote:
The best solution is for you and a buddy to backup via rsync to each other's boxes via the internet.


Is there an easy solution to encrypt your precious data with rsync on the fly?
Back to top
View user's profile Send private message
georgz
Tux's lil' helper
Tux's lil' helper


Joined: 06 Dec 2002
Posts: 137
Location: Munich, Germany

PostPosted: Tue May 13, 2003 10:40 am    Post subject: Reply with quote

Quote:
Is there an easy solution to encrypt your precious data with rsync on the fly?


rsync -e ssh ???
Back to top
View user's profile Send private message
asimon
l33t
l33t


Joined: 27 Jun 2002
Posts: 979
Location: Germany, Old Europe

PostPosted: Tue May 13, 2003 11:08 am    Post subject: Reply with quote

georgz wrote:
Quote:
Is there an easy solution to encrypt your precious data with rsync on the fly?


rsync -e ssh ???


But this only encrypts the transmission, right? I don't want to have a backup of my data on an other (untrusted) machine, where other people could possible access this data. I would like to have my backup data encrypted on the remote machine. And I think rsync can not do this, at least not alone.

A possible approach can be to move all data (at least the part you don't want other's eyes on it) to a loop mounted crypto filesystem and then rsync this (big) file. But it would be cool if there would be a rsync like tool which encrypts data on the fly (and not decrypt it again on the remote machine).
Back to top
View user's profile Send private message
georgz
Tux's lil' helper
Tux's lil' helper


Joined: 06 Dec 2002
Posts: 137
Location: Munich, Germany

PostPosted: Tue May 13, 2003 11:24 am    Post subject: Reply with quote

Sorry, I seem to have misunderstood you...

Never heard of something like that myself... I would say the only way is to use a crypto filesystem on the backup server.
Back to top
View user's profile Send private message
miwjpa
n00b
n00b


Joined: 16 Mar 2003
Posts: 21

PostPosted: Sun May 25, 2003 9:20 pm    Post subject: Reply with quote

asimon wrote:
But this only encrypts the transmission, right? I don't want to have a backup of my data on an other (untrusted) machine, where other people could possible access this data. I would like to have my backup data encrypted on the remote machine. And I think rsync can not do this, at least not alone.

A possible approach can be to move all data (at least the part you don't want other's eyes on it) to a loop mounted crypto filesystem and then rsync this (big) file. But it would be cool if there would be a rsync like tool which encrypts data on the fly (and not decrypt it again on the remote machine).
Maybe duplicity can help you?
http://www.nongnu.org/duplicity/ wrote:
Encrypted bandwidth-efficient backup using the rsync algorithm
Back to top
View user's profile Send private message
Oopsz
Guru
Guru


Joined: 08 Oct 2002
Posts: 340

PostPosted: Mon May 26, 2003 12:53 am    Post subject: Reply with quote

i've used this as a backup script before:
tar cvf - ~/* | bzip2 -9 | ssh -2 -c blowfish -l username host "cat > backup.tbz2"

if you have an encryption program that can run from stdin to stdout, insert it wherever you'd like.
_________________
Pop-before-SMTP with the Gentoo Virtual Mailhosting Guide
Back to top
View user's profile Send private message
crimson
Guru
Guru


Joined: 27 Apr 2002
Posts: 430
Location: Cedar Rapids, IA

PostPosted: Mon May 26, 2003 1:05 am    Post subject: Reply with quote

I just came upon the program called partimage. Together with parted I may try and make my linux partitions bigger.

Partimage claims to "Console-based application to efficiently save raw partition data to an image file. Optional encryption/compression support."
Back to top
View user's profile Send private message
asimon
l33t
l33t


Joined: 27 Jun 2002
Posts: 979
Location: Germany, Old Europe

PostPosted: Mon May 26, 2003 8:59 am    Post subject: Reply with quote

miwjpa wrote:
Maybe duplicity can help you?


Yes, thanks for the link.
Back to top
View user's profile Send private message
DeathAndTaxes
Tux's lil' helper
Tux's lil' helper


Joined: 27 Mar 2003
Posts: 124

PostPosted: Thu Dec 09, 2004 3:59 am    Post subject: Reply with quote

Boy, am I hopping on this topic late...I've been using rdiff-backup for several months and found it works well. I read that duplicity started off as a rdiff-backup spinoff. I'm installing duplicity and will fire up a few experimental backup sessions to see if it works for me. :-)
Back to top
View user's profile Send private message
DeathAndTaxes
Tux's lil' helper
Tux's lil' helper


Joined: 27 Mar 2003
Posts: 124

PostPosted: Fri Dec 10, 2004 12:49 am    Post subject: Reply with quote

Hmmm, can anyone get me started with duplicity? I got all the gnupg stuff figured out, but duplicity keeps asking me for a passphrase for when I encrypt stuff...I shouldn't need to put in a passphrase for when I'm encrypting stuff...Just for when I decrypt it. Further, as an experiment, I build a key without a passphrase, but duplicity always dies instead of doing it's thing.

Can anyone get me started? There's amazingly small documentation on this project.
Back to top
View user's profile Send private message
lightvhawk0
Guru
Guru


Joined: 07 Nov 2003
Posts: 388

PostPosted: Fri Dec 10, 2004 12:36 pm    Post subject: Reply with quote

rsnapshot is a great program I don't know if it encrypts though
_________________
If God has made us in his image, we have returned him the favor. - Voltaire
Back to top
View user's profile Send private message
Gegolath
n00b
n00b


Joined: 04 Dec 2004
Posts: 10

PostPosted: Sun Dec 12, 2004 3:00 am    Post subject: Reply with quote

If you are in the need of encryption for your Backups, then give "aespipe" a try.

As the name says, you just put it in a pipe and encrypt your tar's, iso's ..or whatever you wish, and the best thing, it's also in portage.

Quote:
emerge aespipe

..this will do the trick.

Here's the Readme..where you find anything you need or wanna know.
"Aespipe"
Back to top
View user's profile Send private message
neilhwatson
l33t
l33t


Joined: 06 Feb 2003
Posts: 719
Location: Canada

PostPosted: Sun Dec 12, 2004 2:55 pm    Post subject: Reply with quote

I encrypt with ssl. No extra installs needed.
Code:
#!/bin/bash
#remote backup

echo "Enter openssl passphrase: "
read -s SSLPASS

cd /opt/backup
find . -type f -print |
while read file
        do openssl enc -blowfish -k $SSLPASS -in $file | ssh user@foo.tld "cat > /home/nwatson/backup/$file.blow"
done

ssh user@foo.tld ls -l backup|mail -s "remote backup results" myemail@home.tld

# to decode
#openssl enc -d -blowfish -in <filename> |tar -tjf -

_________________
The true guru is a teacher.
Neil Watson
Back to top
View user's profile Send private message
piggie
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jan 2003
Posts: 113
Location: Sydney, Australia

PostPosted: Tue Jan 18, 2005 5:08 am    Post subject: Reply with quote

DeathAndTaxes wrote:
Hmmm, can anyone get me started with duplicity? I got all the gnupg stuff figured out, but duplicity keeps asking me for a passphrase for when I encrypt stuff...I shouldn't need to put in a passphrase for when I'm encrypting stuff...Just for when I decrypt it. Further, as an experiment, I build a key without a passphrase, but duplicity always dies instead of doing it's thing.

Can anyone get me started? There's amazingly small documentation on this project.


Hi DeathAndTaxes,
you have to specify a passphrase on the commandline as an environment variable such as this:
Code:
PASSPHRASE=somepass duplicity /home file:///tmp
Back to top
View user's profile Send private message
drkstorm
Tux's lil' helper
Tux's lil' helper


Joined: 22 Apr 2004
Posts: 118

PostPosted: Tue Jan 18, 2005 6:12 am    Post subject: Reply with quote

hmm.. curious, I have a DVD burner in my gentoo server that I want to use to make monthly backups for offsite storage... is there a DVD burner app that is command line friendly?

I would like to have it run from a cron script, it would only have to burn a simple 200MB tar file, and leave the disc open for the next months burn.
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Tue Jan 18, 2005 6:29 am    Post subject: Reply with quote

http://www.bacula.org

Bacula is in portage.
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Tue Jan 18, 2005 6:30 am    Post subject: Reply with quote

http://www.amanda.org

Amanda is in portage too.
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum