bash script help, and killall resolved

Gregory Nowak greg at romuald.net.eu.org
Sun Oct 12 20:05:44 EDT 2008


-----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 at EU.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkjykNcACgkQ7s9z/XlyUyBNEACfSVdKvu0l8/iLThL0Gsa0Ia1J
RnUAnjobHZAOLy12ebeoDlaMF492w1k1
=1i/I
-----END PGP SIGNATURE-----



More information about the Speakup mailing list