Re: backing up to ftp server
I am thinking about using ncftpput (ftp server does not support ssh), and to enstript files before uploading. I did take a look at i assume oyu mean encrypt ... and yes .. do encrypt the backup files but mroe importantly, use a different ftp login id and unique passwd you do not use anywhere else - assume your ftp server is hacked and the [h/cr]acker is collecting login and passwd info from your other boxes and sniffing all traffic that server is sitting on yes, I mean enscrypt, and yes my ftp user name/password is different and can not be changed. ... Thanks, -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: backing up to ftp server
i assume oyu mean encrypt ... and yes .. do encrypt the backup files yes, I mean enscrypt, and yes my ftp user name/password is different and can not be changed. ... I mean encrypt, encrypt, encrypt, ... Sorry, -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: backing up to ftp server
I want to start backing up to ftp server and I was not able to find package which does that. tar zcvf today.tgz `find /etc /home -mtime -7 ( -type f -o -type l ) -print scp today.tgz ftp-backup:/pub/Backups - add your host key for passwd-less backups Just in case if some one needs similar script, here is one which works for me tar zcvf - ./. |openssl des3 -salt -k password | ncftpput -u ftp.user -p ftp.password -c ftp.server.name backup.`date +%b.%d.%y`.des3 - PS: I do have more complex tar, but this is a script which will create encrypted gziped file directly on remote ftp. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: backing up to ftp server
On Mon, 5 Jul 2004, Vadik wrote: tar zcvf today.tgz `find /etc /home -mtime -7 ( -type f -o -type l ) -print scp today.tgz ftp-backup:/pub/Backups - add your host key for passwd-less backups Thanks, I do know how to tar and how to upload, I was mostly looking for script that maintain files on ftp server (i.e. removing old one). But I guess I'll just have to write script. ftp-backup# find /pub/Backups -mtime -180 exec rm -f {}\; - just one line in root's or ftp's crontab I am thinking about using ncftpput (ftp server does not support ssh), and to enstript files before uploading. I did take a look at i assume oyu mean encrypt ... and yes .. do encrypt the backup files but mroe importantly, use a different ftp login id and unique passwd you do not use anywhere else - assume your ftp server is hacked and the [h/cr]acker is collecting login and passwd info from your other boxes and sniffing all traffic that server is sitting on http://linux-backup.net/App but could not find what I was looking for. freshmeat has some, but I am not sure I would trust these scripts. never trust any script from anybody ... do your own code review, and harden the script and definitely, do NOT just run it and see what happens :-) c ya alvin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: backing up to ftp server
hi ya On Sun, 4 Jul 2004, [iso-8859-1] Thomas Adam wrote: --- Vadik [EMAIL PROTECTED] wrote: I want to start backing up to ftp server and I was not able to find package which does that. My only requirement that it should do daily backups and keep last 7 backups (or do incremental backups). tar zcvf today.tgz `find /etc /home -mtime -7 ( -type f -o -type l ) -print scp today.tgz ftp-backup:/pub/Backups - add your host key for passwd-less backups - or - no passwd needed mount ftp-backup:/pub/Backups /mnt/Backups scp today.tgz /mnt/Backups sync ; umount /mnt/Backups dozens of free backup scripts http://linux-backup.net/App Why ftp? Why not use rsync? because rsync doesn't keep a copy of the last set of changes before it overwrite it ?? ( you do NOT know what day foo.c in the backups got overwritten ( by the latest changes because you only have one file in backups - good backups depends also on how you implement it and is it for backups and restore the last copy you had or to go back in history to see who and when foo.c was changed ( you can also use cvs to do the same, but the whole cvs needs to ( be backed up too - a good backup policy will keep multiple copies of the same files - yesterday - last week - last month - incremental and full backups and your backup policy should survive a 100% disk full and you do NOT lose data, because how often do you check the backups is working .. - and rotate each on some schedule to remove old backup junk - when you find out you need foo.c from backups, you might have to search back 1 or 5 or 10 previous versions to find the one that is un-corrupted or un-hacked c ya alvin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: backing up to ftp server
On Mon, 5 Jul 2004 01:12:06 -0700 (PDT), Alvin Oga [EMAIL PROTECTED] wrote: Why ftp? Why not use rsync? because rsync doesn't keep a copy of the last set of changes before it overwrite it ?? Actually, rsync can be used to make incremental backups. Please see: http://www.mikerubel.org/computers/rsync_snapshots/#Incremental http://rsync.samba.org/examples.html The second URL describes a 7 day incremental solution based upon rsync. However, if all the original poster has is FTP access, I would second the suggestion to use tar with a little bit of scripting. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: backing up to ftp server
hi ya stephen On Mon, 5 Jul 2004, Stephen Le wrote: Why ftp? Why not use rsync? because rsync doesn't keep a copy of the last set of changes before it overwrite it ?? Actually, rsync can be used to make incremental backups. Please see: http://www.mikerubel.org/computers/rsync_snapshots/#Incremental http://rsync.samba.org/examples.html good links .. but i guess, i prefer to see multiple files, of what files changed as of that date backup/jun.30.tgz that holds previous 32 days of backups backup/jun.23.tgz that holds previous 32 days backup/jun.16.tgz that holds previous 32 days .. backup/jun.09.tgz that holds previous 32 days .. ... ( yes, i do mean make 30-day incrementals every week ) i can see when foo.c was corrupted, on jun 23 or jun 16... - by the tme you find foo.c is corrupt or missing, you dont know when it occured rsync overwrites the data, but didnt save a the old or current copy of the file it was overwriting/rsyncing c ya alvin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: backing up to ftp server
--- Alvin Oga [EMAIL PROTECTED] wrote: tar zcvf today.tgz `find /etc /home -mtime -7 ( -type f -o -type l ) -print I think you'll find you'd need to escape the brackets, above. Why ftp? Why not use rsync? because rsync doesn't keep a copy of the last set of changes before it overwrite it ?? Well, the OP did say or incremental backups as opposed to and/or... [..snip..] -- Thomas Adam = The Linux Weekend Mechanic -- http://linuxgazette.net TAG Editor -- http://linuxgazette.net shrug We'll just save up your sins, Thomas, and punish you for all of them at once when you get better. The experience will probably kill you. :) -- Benjamin A. Okopnik (Linux Gazette Technical Editor) ___ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself http://uk.messenger.yahoo.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: backing up to ftp server
On Sun, 04 Jul 2004 14:39:12 -0700, Vadik [EMAIL PROTECTED] wrote: I want to start backing up to ftp server and I was not able to find package which does that. My only requirement that it should do daily backups and keep last 7 backups (or do incremental backups). Take a look at http://syncftp.sf.net/ - there's the original syncftp, a re-implementation using GNOME libraries by my co-author; also links to other, similar programs. Also, for scheduling combine with logrotate and cron (both in debian in various forms) -- Jon Dowland -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: backing up to ftp server
hi ya thomas On Mon, 5 Jul 2004, [iso-8859-1] Thomas Adam wrote: --- Alvin Oga [EMAIL PROTECTED] wrote: tar zcvf today.tgz `find /etc /home -mtime -7 ( -type f -o -type l ) -print I think you'll find you'd need to escape the brackets, above. yes, \( Why ftp? Why not use rsync? because rsync doesn't keep a copy of the last set of changes before it overwrite it ?? Well, the OP did say or incremental backups as opposed to and/or... welll, hopefull, the op and others can figure out to add -mtime -7 for last 7 days of incremental changes vs -mtime -30 for last 30 days and put all that ( 1 line ) in a script or into cron and mount/umount backups as needed - always manually mount the backups otherwise, watch out for rm -rf / that automounted your backups too c ya alvin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: backing up to ftp server
Alvin Oga wrote: hi ya On Sun, 4 Jul 2004, [iso-8859-1] Thomas Adam wrote: --- Vadik [EMAIL PROTECTED] wrote: I want to start backing up to ftp server and I was not able to find package which does that. My only requirement that it should do daily backups and keep last 7 backups (or do incremental backups). tar zcvf today.tgz `find /etc /home -mtime -7 ( -type f -o -type l ) -print scp today.tgz ftp-backup:/pub/Backups - add your host key for passwd-less backups Thanks, I do know how to tar and how to upload, I was mostly looking for script that maintain files on ftp server (i.e. removing old one). But I guess I'll just have to write script. I am thinking about using ncftpput (ftp server does not support ssh), and to enstript files before uploading. I did take a look at http://linux-backup.net/App but could not find what I was looking for. freshmeat has some, but I am not sure I would trust these scripts. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
backing up to ftp server
I want to start backing up to ftp server and I was not able to find package which does that. My only requirement that it should do daily backups and keep last 7 backups (or do incremental backups). Thanks, -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: backing up to ftp server
--- Vadik [EMAIL PROTECTED] wrote: I want to start backing up to ftp server and I was not able to find package which does that. My only requirement that it should do daily backups and keep last 7 backups (or do incremental backups). Why ftp? Why not use rsync? -- Thomas Adam = The Linux Weekend Mechanic -- http://linuxgazette.net TAG Editor -- http://linuxgazette.net shrug We'll just save up your sins, Thomas, and punish you for all of them at once when you get better. The experience will probably kill you. :) -- Benjamin A. Okopnik (Linux Gazette Technical Editor) ___ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself http://uk.messenger.yahoo.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: backing up to ftp server
Thomas Adam wrote: --- Vadik [EMAIL PROTECTED] wrote: I want to start backing up to ftp server and I was not able to find package which does that. My only requirement that it should do daily backups and keep last 7 backups (or do incremental backups). Why ftp? Why not use rsync? I have an ftp server which I can utilize for backups. I can not modify anything on that server. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: backing up to ftp server
--- Vadik [EMAIL PROTECTED] wrote: I have an ftp server which I can utilize for backups. I can not modify anything on that server. This looks to be a very simple exercise in scripting, if nothing else. Have you taken a look at kbackup (I assume not): http://kbackup.sourceforge.net/ I cannot recall whether this supports ftp transfers or not, but if not automated ftp (even by way of expect(1)) is simple. -- Thomas Adam = The Linux Weekend Mechanic -- http://linuxgazette.net TAG Editor -- http://linuxgazette.net shrug We'll just save up your sins, Thomas, and punish you for all of them at once when you get better. The experience will probably kill you. :) -- Benjamin A. Okopnik (Linux Gazette Technical Editor) ___ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself http://uk.messenger.yahoo.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: backing up to ftp server
Thomas Adam wrote: --- Vadik [EMAIL PROTECTED] wrote: I have an ftp server which I can utilize for backups. I can not modify anything on that server. This looks to be a very simple exercise in scripting, if nothing else. Have you taken a look at kbackup (I assume not): http://kbackup.sourceforge.net/ kbackup doesn't do ftp. I know that this can be done with scripting, but I am sure someone has written this script, which would do backups, and clean old backups. Thanks, -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]