Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] find files and put with ncftp
- Date: Fri, 9 Mar 2007 00:55:11 +0900
- From: "Nguyen Vu Hung" <vuhung16plus@??>
- Subject: Re: [tlug] find files and put with ncftp
- References: <78d7dd350703060754t1d13d297rb257db6629e5e9fb@example.com> <op.tossfye1rtshzt@example.com> <78d7dd350703070339l34c9a89bpdea5ab9d0284cad1@example.com> <op.totiroxlrtshzt@example.com> <78d7dd350703070845u78e62a0eodf6531acb3d4584e@example.com> <op.tounlipyrtshzt@example.com>
On 3/8/07, Zev Blut <zb@??> wrote:z@?? ~/ncftp $ ls Spaced File.txt bar.txt baz.txt foo.txt z@?? ~/ncftp $ find ./ -type f -exec ncftpput -u xxx -p xxx ftpsrv ./ "{}"\;
I can't stop it from running. Thanks
FYI, the main server is
http://yasumin.ddo.jp:8080/~vuhung/aoc/aoclife.ddo.jp/recs/aoc-recs/
--------- It is the world's biggest AOC ( Age of Empires - a realtime strat. game by Ensemble Studio ), my friends and myself upload recorded games to it everyday. I don't want to repeat one more upload: doing it a little smarter ----------
and I want to mirror it to:
http://70.86.90.218/~aoccom/aoc/recs/aoc-recs/
by making the script like following and add it to crontab, I can "sycn" files I upload to the mirror from host.
1. "mirror.aoclife.to.aoccom.sh"
FTPU="" FTPP="" FTPH="" INDIR="/home/vuhung/public_html/aoc/aoclife.ddo.jp/recs/aoc-recs/" OUTDIR="/public_html/aoc/recs/aoc-recs/" LOGDIR="/home/vuhung/public_html/aoc/aoclife.ddo.jp/misc/log/"
find $INDIR -type f -mtime -1 -exec ls -lht {} \; > $LOGDIR/uploaded.`date -I`.log find $INDIR -type f -mtime -1 -exec ncftpput -u$FTPU -p$FTPP $FTPH $OUTDIR "{}" \; &> $LOGDIR/uploaded.`date -I`.log.log
2. crontab ( edit with crontab -e )
aoclife:~/sbin# crontab -l 10 3 * * * /root/sbin/mirror.aoclife.to.aoccom.sh
3. Optional, for user's convinience, list folders and new list on top
vuhung@??:~/public_html/aoc$ cat .htaccess IndexOptions +FoldersFirst +NameWidth=80 IndexOrderDefault Descending Date vuhung@??:~/public_html/aoc$
-- Best Regards, Nguyen Hung Vu vuhung16plus{remove}@?? VIQR Standard: http://vi.i18n.kde.org/viqr http://www.flickr.com/photos/vuhung/tags/fav/
- References:
- [tlug] find files and put with ncftp
- From: Nguyen Vu Hung
- Re: [tlug] find files and put with ncftp
- From: Zev Blut
- Re: [tlug] find files and put with ncftp
- From: Nguyen Vu Hung
- Re: [tlug] find files and put with ncftp
- From: Zev Blut
- Re: [tlug] find files and put with ncftp
- From: Nguyen Vu Hung
- Re: [tlug] find files and put with ncftp
- From: Zev Blut
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Lost Japanese Input in OpenOffice
- Next by Date: Re: [tlug] Lost Japanese Input in OpenOffice
- Previous by thread: Re: [tlug] find files and put with ncftp
- Next by thread: [tlug] article about Japanese schools using Linux in future
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links