* bash script help, and killall resolved
@ Tyler Littlefield
` Gregory Nowak
0 siblings, 1 reply; 3+ messages in thread
From: Tyler Littlefield @ UTC (permalink / raw)
To: speakup
Hello list,
thanks for the info on killall, pkill did the trick. Apparently it was renamed.
I'm trying to set up a script that will tar a file, encrypt it with ccrypt -K pass -e file.tar.gz, and send it via ftp to a server so it can be stored.
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
I'm at a loss, as to how to make it preserve the date through backup though. This is my current script:
tar -zcvf ~/backups/`date '+%m-%d-%Y_%H'`.tar.gz ~/moo/db.db
Because it's storing the time, I need a way to keep the filename in tact when I ccrypt it, and then ftp it.
I'm able to ccrypt, but I am looking for solutions on sending it via ftp, ideas would be welcome there.
I just almost lost a whole db, which is the code for my mud that I"ve been working on the past two months, and it would've cost me a ton of time wasted, so I'm taking extra precautions.
Thanks,
Tyler Littlefield
Visit tds for quality software and web design:
http://tysdomain.com
skype: st8amnd127
aim: st8amnd2005
msn: tyler@tysdomain.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: bash script help, and killall resolved
bash script help, and killall resolved Tyler Littlefield
@ ` Gregory Nowak
` Tyler Littlefield
0 siblings, 1 reply; 3+ messages in thread
From: Gregory Nowak @ UTC (permalink / raw)
To: Speakup is a screen review system for Linux.
-----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-----
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: bash script help, and killall resolved
` Gregory Nowak
@ ` Tyler Littlefield
0 siblings, 0 replies; 3+ messages in thread
From: Tyler Littlefield @ UTC (permalink / raw)
To: Speakup is a screen review system for Linux.
I need to keep previous backups, but I'll check that out. thanks.
Thanks,
Tyler Littlefield
Visit tds for quality software and web design:
http://tysdomain.com
skype: st8amnd127
aim: st8amnd2005
msn: tyler@tysdomain.com
----- Original Message -----
From: "Gregory Nowak" <greg@romuald.net.eu.org>
To: "Speakup is a screen review system for Linux." <speakup@braille.uwo.ca>
Sent: Sunday, October 12, 2008 6:05 PM
Subject: Re: bash script help, and killall resolved
> -----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-----
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~ UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
bash script help, and killall resolved Tyler Littlefield
` Gregory Nowak
` Tyler Littlefield
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).