Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Old 08-12-2009, 08:50 PM   #1 (permalink)
FnF
Member
 
Join Date: 05-10-09
Posts: 36
iTrader: 0 / 0%
Latest Blog:
None

FnF is liked by somebodyFnF is liked by somebodyFnF is liked by somebody
Script for automatic downloading

Looking for some help creating a script to use with WinSCP on my server, that will automatically download the contents of one entire directory and then delete it contents.

What I have going is I want to make backups of everyones Home Directories and SQL databases, which I already have WHM doing three times a week.

Now I would like WinSCP to log in afterwards, download them locally and then clear the directory.

I've got the basic jist of the script but I'm stumbling with downloading an entire directories contents, verses a single file. And the deleting part.
FnF is offline  
Add Post to del.icio.us
Reply With Quote
Old 08-13-2009, 06:02 PM   #2 (permalink)
Contributing Member
 
Join Date: 06-25-09
Location: Brighton, UK
Posts: 113
iTrader: 0 / 0%
kieransimkin is liked by somebodykieransimkin is liked by somebodykieransimkin is liked by somebody
scp's not really the ideal tool if you want to copy multiple files - however, you should be able to do remote filename globbing (google scp filename globbing) - I'd suggest rsync or something like that instead though.
__________________
~Kieran Simkin
Software Developer, Photographer, Musician

Portfolio: The changing landscape of Cuckmere Haven
Business: Affordable web hosting from Digital Crocus
kieransimkin is offline  
Add Post to del.icio.us
Reply With Quote
Old 08-14-2009, 09:52 PM   #3 (permalink)
FnF
Member
 
Join Date: 05-10-09
Posts: 36
iTrader: 0 / 0%
Latest Blog:
None

FnF is liked by somebodyFnF is liked by somebodyFnF is liked by somebody
Thankss kieransimkin.
I've looked at Rsync, but it's to my understanding that it compares files and and retrieves changes made etc. Hence the "sync".

I'm looking to have an archive of backups so that in the worst case scenario, I can pull a clean one from x amount of days, or weeks ago.
FnF is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatic Youtube Script potter Content 3 03-10-2009 06:54 PM
Automatic multiple web page creator script edpudol Content 2 07-22-2008 08:40 AM
Automatic BOOKMARK Script? Tariel Zivzivadze Coding Forum 10 07-11-2004 08:23 PM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 10:14 PM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.