From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from linserver.romuald.net.eu.org (linserver.romuald.net.eu.org [63.228.150.209]) by speech.braille.uwo.ca (Postfix) with ESMTP id 255A710A80 for ; Sun, 12 Oct 2008 20:04:58 -0400 (EDT) Received: (qmail 12612 invoked by uid 1000); 12 Oct 2008 17:05:44 -0700 Date: Sun, 12 Oct 2008 17:05:44 -0700 From: Gregory Nowak To: "Speakup is a screen review system for Linux." Subject: Re: bash script help, and killall resolved Message-ID: <20081013000544.GA6987@localhost.localdomain> References: <945DA866D14B4E05A7866F9F0121BBB4@tdsportable> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; x-action=pgp-signed Content-Disposition: inline In-Reply-To: <945DA866D14B4E05A7866F9F0121BBB4@tdsportable> X-PGP-Key: http://www.romuald.net.eu.org/pubkey.asc User-Agent: Mutt/1.5.18 (2008-05-17) X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.1.11 Precedence: list Reply-To: "Speakup is a screen review system for Linux." List-Id: "Speakup is a screen review system for Linux." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Oct 2008 00:04:58 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, Oct 12, 2008 at 04:54:23PM -0600, Tyler Littlefield wrote: > I've got the tarring done, though for some reason it's preserving the whole directory structure and puts the file under home/vertigo/moo/db.db rather than just untarring db.db This is normal tar behavior. If that's not what you want, then instead of doing tar -zcvf ~/backups/`date '+%m-%d-%Y_%H'`.tar.gz ~/moo/db.db do cd ~/moo tar -zcvf ~/backups/`date '+%m-%d-%Y_%H'`.tar.gz db.db > I'm at a loss, as to how to make it preserve the date through backup though. This is my current script: Just a thought, but why not modify your script to create a directory using the output of date (like you're doing in your tar command now), put db.db in that directory, and tar up that new directory, instead of just db.db. You'd also want to write a script that will remove any directories with yesterday's date. > I'm able to ccrypt, but I am looking for solutions on sending it via ftp, ideas would be welcome there. I'd suggest installing ncftp, and looking at the man page for ncftpput(1), it looks like it should do what you want. Greg - -- web site: http://www.romuald.net.eu.org gpg public key: http://www.romuald.net.eu.org/pubkey.asc skype: gregn1 (authorization required, add me to your contacts list first) - -- Free domains: http://www.eu.org/ or mail dns-manager@EU.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkjykNcACgkQ7s9z/XlyUyBNEACfSVdKvu0l8/iLThL0Gsa0Ia1J RnUAnjobHZAOLy12ebeoDlaMF492w1k1 =1i/I -----END PGP SIGNATURE-----