Re: Backup Question
On Tue, Jun 07, 2005 at 11:02:28AM -0500, Cody Holland wrote: > Ok, I'm trying to do a simple tar+gzip backup for my file system. I can > do this no problem. The backup is a little less than 2Gb. What I would > like to do is chop this up into 650Mb pieces that I can ftp over to a > server with a cd-r and burn them. Does anyone know a good utility that > can do this, or another method that will accomplish what I'm trying to > do? You could use split(1) as others have suggested. But that means you have to concatenate the parts on disk before you can restore the backup. Another option is to use gnu tar (gtar) with the -F and -L options. This will create a multi-volume tar file, that might be easier to restore. Making incremental backups (with the -N or --newer-mtime options of gtar) will also reduce the space needed by subsequent backups. Yet another option would be to replace your CD writer with a DVD writer and write it all in one go, with room to spare. :-) Roland -- R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text. public key: http://www.xs4all.nl/~rsmith/pubkey.txt pgpUnAollF2uZ.pgp Description: PGP signature
Re: Backup Question
--On 07 June 2005 11:02 -0500 Cody Holland <[EMAIL PROTECTED]> wrote: Ok, I'm trying to do a simple tar+gzip backup for my file system. I can do this no problem. The backup is a little less than 2Gb. What I would like to do is chop this up into 650Mb pieces that I can ftp over to a server with a cd-r and burn them. Does anyone know a good utility that can do this, or another method that will accomplish what I'm trying to do? split -b (see the man page) - or I think tar has an option to define both the 'size of the tape' (in 1k blocks) and a script to run 'between tape changes' - so you should be able to sort something out with that... -Karl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Backup Question
On Tue, 7 Jun 2005 11:02:28 -0500 "Cody Holland" <[EMAIL PROTECTED]> wrote: > Ok, I'm trying to do a simple tar+gzip backup for my file system. I > can do this no problem. The backup is a little less than 2Gb. What I > would like to do is chop this up into 650Mb pieces that I can ftp over > to a server with a cd-r and burn them. Does anyone know a good > utility that can do this, or another method that will accomplish what > I'm trying to do? you can try split, see : man split ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Backup Question
"Cody Holland" <[EMAIL PROTECTED]> writes: > Ok, I'm trying to do a simple tar+gzip backup for my file system. I can > do this no problem. The backup is a little less than 2Gb. What I would > like to do is chop this up into 650Mb pieces that I can ftp over to a > server with a cd-r and burn them. Does anyone know a good utility that > can do this, or another method that will accomplish what I'm trying to > do? split(1) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Backup question
On Wed, Jun 09, 2004 at 10:29:27AM -0400, Karen Donathan wrote: > Hello. > > What is the best way to back up the html directory? We do not have a > tape drive. Is there a way to have an automated .tar file created and > sent as email so I could save it on another server? Any help would be > great! In addition to other suggestions, for various remote servers I like using rsnapshot (google for its homepage, it's also in the ports collection). It works as rsync over ssh, and it keeps a configurable amount of previous snapshots. e.g. a common configurations is 6 per day at 4-hourly intervals, 7 per week at daily intervals, and 4 per month at weeks intervals, so that you can always go back to see what your files were like up to a month ago. Since your HTML files are probably comparatively small, you may find this method quite convenient. Even for large sets of files the hardlinking of unchanged files means that surprisingly little overhead of disk space is used. -- http://freebsdwiki.org/ - Encrypted mail welcome - keyid 0xBF15490B pgp1EMFTHWZzm.pgp Description: PGP signature
Re: Backup question
On Wed, Jun 09, 2004 at 10:29:27AM -0400, Karen Donathan wrote: > What is the best way to back up the html directory? We do not have a > tape drive. Is there a way to have an automated .tar file created and > sent as email so I could save it on another server? Any help would be > great! Yeah. This sort of thing is easy to do with a very small shell script. From your specifications, something like this will do the job: #!/bin/sh PATH=/bin:/usr/bin ; export PATH htmldir=/usr/local/www/data recipient="[EMAIL PROTECTED]" today=$(date +%Y%m%d) tar -cvjf - ${htmldir} | uuencode backup-${today}.tar.bz2 | \ mail -s "Backup of ${htmldir} on ${today}" ${recipient} \ >>/var/log/backup.log 2>&1 Save that to a file, make it executable and run it out of root's crontab on a daily basis: @daily /usr/local/bin/mybackupscript (be sure you understand the difference between /etc/crontab and /var/cron/tabs/root, and how to use crontab(1) correctly: do *not* feed /etc/crontab into the crontab command.) The recipient should use procmail or similar to feed the backup messages into uudecode and so extract the compressed tar file. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK pgpXU3B2hUKU9.pgp Description: PGP signature
Re: Backup question
Karen Donathan <[EMAIL PROTECTED]> wrote: > Hello. > > What is the best way to back up the html directory? We do not have a > tape drive. Is there a way to have an automated .tar file created and > sent as email so I could save it on another server? Any help would be > great! Ah ... a neophyte unwittingly asking to be taught the magic of shell-scripting. Yes, you can do everything you ask. The trick is to write a shell script to automate it for you, then add the shell script to cron to be automagically executed on a schedule. Here's my suggestion: 1) Study the attached shell script, it backs up to a seperate HDD, but it'll give you an idea of how things work 2) Read up on "man mail" to learn how to use the mail program from a shell script 3) Write your own and test it from the command line. 4) Add a cron entry to automate it. 5) Once you're getting good backups, look into using rsync to make the process even smoother. #!/bin/sh # Takes the files in /backup/source and bzips them into an # archive in /backup/archive # Also deletes archive files older than a certain amount DATE=`/bin/date "+%F"` MAXAGE=14 /usr/bin/tar cyf /backup/archive/backup-${DATE}.tbz /backup/source > /dev/null 2>&1 /usr/bin/find /backup/archive -mtime ${MAXAGE} -delete -- Bill Moran Potential Technologies http://www.potentialtech.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Backup question
Karen Donathan wrote: Hello. What is the best way to back up the html directory? We do not have a tape drive. There are many. Keep watching the list and some might show up. Is there a way to have an automated .tar file created and sent as email so I could save it on another server? Any help would be great! Thanks Karen Donathan George Washington High School Charleston, WV There are lots of ways, I'm sure, although, like I said, this strategy might not be the best option --- I'm no expert. OTOH, if it works ... Hmm, something like this in cron? You'd need to get acquainted with shar(1), that old sneaky archiving process tar -R mydir -cf mydir.tar && shar mydir.tar > mydir.tar.shar && mail [EMAIL PROTECTED] < mydir.tar.shar HTH, Kevin Kinsey DaleCo, S.P. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Backup question
- Original Message - From: "Karen Donathan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 09, 2004 9:29 AM Subject: Backup question > Hello. > > What is the best way to back up the html directory? We do not have a > tape drive. Is there a way to have an automated .tar file created and > sent as email so I could save it on another server? Any help would be > great! > > Thanks > Karen Donathan > George Washington High School > Charleston, WV > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" Sure, have a crontab do the tar daily and then use mutt to send it as an attachment to the desired email address. Keep in mind, if you're not doing the mail services yourself, some mail servers limit the file size of attachments. -- Micheal Patterson TSG Network Administration 405-917-0600 Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Backup question
hi there ara many ways: - tar to dvd +/- rw - tar and scp to another unix server - tar and smbclient to another windows server - tar and mail regards michael Karen Donathan wrote: Hello. What is the best way to back up the html directory? We do not have a tape drive. Is there a way to have an automated .tar file created and sent as email so I could save it on another server? Any help would be great! Thanks Karen Donathan George Washington High School Charleston, WV ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: backup question
On Fri, 6 Feb 2004 10:52 am, Warren Block wrote: > On Thu, 5 Feb 2004, Darryl Hoar wrote: > > I have a Freebsd 5.1-release box with samba installed, configured and > > working. > > > > On my network I have an NT 4 server (can't change this right now). It > > has a share on it called publications. > > > > I would like to synchronize (in one direction) the files from the > > publication share to the Freebsd box. So, when I synchronized, any > > changes on the publications share are copied to the freebsd box, but > > NEVER the other way. > > Use mount_smbfs to mount the publications share read-only on the FreeBSD > system. Then use rsync -a to copy it to your backup location. > > -Warren Block * Rapid City, South Dakota USA > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "[EMAIL PROTECTED]" And the CRON ring to rule them all ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: backup question
On Thu, 5 Feb 2004, Darryl Hoar wrote: > I have a Freebsd 5.1-release box with samba installed, configured and > working. > > On my network I have an NT 4 server (can't change this right now). It has > a share on it called publications. > > I would like to synchronize (in one direction) the files from the > publication share to the Freebsd box. So, when I synchronized, any > changes on the publications share are copied to the freebsd box, but > NEVER the other way. Use mount_smbfs to mount the publications share read-only on the FreeBSD system. Then use rsync -a to copy it to your backup location. -Warren Block * Rapid City, South Dakota USA ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: backup question
Here's how I do it... - Open a writable Samba share on the FreeBSD box. - Map the drive from Windows and ensure the Win-user can write to it. - Schedule Robocopy (Res. Kit utility) to sync the Samba share from publications. Should do it. Robocoy script should be something like: robocopy.exe C:\publications J:\sambashare /mir >> C:\robocopy.log where C:\ is your local source directory that you are syncing from and J: is your mapped Samba share on the FreeBSD box. HTH, Christopher Hollow Darryl Hoar wrote: Greetings, I have a Freebsd 5.1-release box with samba installed, configured and working. On my network I have an NT 4 server (can't change this right now). It has a share on it called publications. I would like to synchronize (in one direction) the files from the publication share to the Freebsd box. So, when I synchronized, any changes on the publications share are copied to the freebsd box, but NEVER the other way. Any ideas on this ? thanks, Darryl ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- Christopher Hollow - Technical Consultant Infrastructure & Technology Support Toronto, ON ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"