View previous topic :: View next topic |
Author |
Message |
HomerSimpson l33t
Joined: 25 Jan 2003 Posts: 869 Location: Ohio, USA
|
Posted: Thu Mar 27, 2003 4:24 am Post subject: Backup program? |
|
|
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 |
|
|
chris4linux Apprentice
Joined: 13 Nov 2002 Posts: 210 Location: Germany
|
Posted: Thu Mar 27, 2003 7:00 am Post subject: |
|
|
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 |
|
|
neilhwatson l33t
Joined: 06 Feb 2003 Posts: 719 Location: Canada
|
Posted: Thu Mar 27, 2003 2:40 pm Post subject: |
|
|
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 |
|
|
slam_head Guru
Joined: 06 Jan 2003 Posts: 449 Location: New York City
|
Posted: Thu Mar 27, 2003 8:54 pm Post subject: |
|
|
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 |
|
|
Donovan Tux's lil' helper
Joined: 08 Feb 2003 Posts: 97 Location: Halifax, NS, Canada
|
Posted: Tue May 13, 2003 3:35 am Post subject: |
|
|
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...
|
|
Back to top |
|
|
asimon l33t
Joined: 27 Jun 2002 Posts: 979 Location: Germany, Old Europe
|
Posted: Tue May 13, 2003 8:02 am Post subject: |
|
|
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 |
|
|
georgz Tux's lil' helper
Joined: 06 Dec 2002 Posts: 137 Location: Munich, Germany
|
Posted: Tue May 13, 2003 10:40 am Post subject: |
|
|
Quote: | Is there an easy solution to encrypt your precious data with rsync on the fly? |
rsync -e ssh ??? |
|
Back to top |
|
|
asimon l33t
Joined: 27 Jun 2002 Posts: 979 Location: Germany, Old Europe
|
Posted: Tue May 13, 2003 11:08 am Post subject: |
|
|
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 |
|
|
georgz Tux's lil' helper
Joined: 06 Dec 2002 Posts: 137 Location: Munich, Germany
|
Posted: Tue May 13, 2003 11:24 am Post subject: |
|
|
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 |
|
|
miwjpa n00b
Joined: 16 Mar 2003 Posts: 21
|
Posted: Sun May 25, 2003 9:20 pm Post subject: |
|
|
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 |
|
|
Oopsz Guru
Joined: 08 Oct 2002 Posts: 340
|
Posted: Mon May 26, 2003 12:53 am Post subject: |
|
|
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 |
|
|
crimson Guru
Joined: 27 Apr 2002 Posts: 430 Location: Cedar Rapids, IA
|
Posted: Mon May 26, 2003 1:05 am Post subject: |
|
|
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 |
|
|
asimon l33t
Joined: 27 Jun 2002 Posts: 979 Location: Germany, Old Europe
|
Posted: Mon May 26, 2003 8:59 am Post subject: |
|
|
Yes, thanks for the link. |
|
Back to top |
|
|
DeathAndTaxes Tux's lil' helper
Joined: 27 Mar 2003 Posts: 124
|
Posted: Thu Dec 09, 2004 3:59 am Post subject: |
|
|
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 |
|
|
DeathAndTaxes Tux's lil' helper
Joined: 27 Mar 2003 Posts: 124
|
Posted: Fri Dec 10, 2004 12:49 am Post subject: |
|
|
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 |
|
|
lightvhawk0 Guru
Joined: 07 Nov 2003 Posts: 388
|
Posted: Fri Dec 10, 2004 12:36 pm Post subject: |
|
|
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 |
|
|
Gegolath n00b
Joined: 04 Dec 2004 Posts: 10
|
Posted: Sun Dec 12, 2004 3:00 am Post subject: |
|
|
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.
..this will do the trick.
Here's the Readme..where you find anything you need or wanna know.
"Aespipe" |
|
Back to top |
|
|
neilhwatson l33t
Joined: 06 Feb 2003 Posts: 719 Location: Canada
|
Posted: Sun Dec 12, 2004 2:55 pm Post subject: |
|
|
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 |
|
|
piggie Tux's lil' helper
Joined: 01 Jan 2003 Posts: 113 Location: Sydney, Australia
|
Posted: Tue Jan 18, 2005 5:08 am Post subject: |
|
|
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 |
|
|
drkstorm Tux's lil' helper
Joined: 22 Apr 2004 Posts: 118
|
Posted: Tue Jan 18, 2005 6:12 am Post subject: |
|
|
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 |
|
|
Bob P Advocate
Joined: 20 Oct 2004 Posts: 3355 Location: Jackass! Development Labs
|
|
Back to top |
|
|
Bob P Advocate
Joined: 20 Oct 2004 Posts: 3355 Location: Jackass! Development Labs
|
|
Back to top |
|
|
|