DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Auto-download from DC with WinSCP  (Read 7,509 times)

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • Participated in NANY Challenge Eight Times
    • Programming School - Deluxe Bonus Medal
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Military Service Badge - US Army
    • Writer
Auto-download from DC with WinSCP
« on: August 11, 2011, 04:49 PM »
I wonder if this is permissible and possible: I'd like to automate something that, currently, I'm doing manually.  I backup my Flatpress Blog by downloading it to my MyBook using Filezilla.  I understand that WinSCP can be used in console mode with an associated text file acting as a script.  I'm wondering (1) if this is permissible even if I get it working and (2) if permissible, does anyone have any experience and can provide a sample script. 

All I want is a WinSCP script to automate downloading my /flatpress/ directory to my MyBook.  Then I can use Task Scheduler to automate this.
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

Proofreading Service: http://williammillerservices.com/proofreading

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • Participated in NANY Challenge Eight Times
    • Programming School - Deluxe Bonus Medal
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Military Service Badge - US Army
    • Writer
Re: Auto-download from DC with WinSCP
« Reply #1 on: August 11, 2011, 07:46 PM »
It looks like Command Line FTP would work too.
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

Proofreading Service: http://williammillerservices.com/proofreading

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: Auto-download from DC with WinSCP
« Reply #2 on: August 11, 2011, 07:55 PM »
I'd say: Go for it! :up:
The WinSCP script isn't that had to grasp, IMHO, and if you can do it by hand, who (c/w)ould stop you doing it mechanically?
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • Participated in NANY Challenge Eight Times
    • Programming School - Deluxe Bonus Medal
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Military Service Badge - US Army
    • Writer
Re: Auto-download from DC with WinSCP
« Reply #3 on: August 11, 2011, 07:59 PM »
I've been experimenting with WinSCP, but so far haven't figured out how to connect to my DC ftp account.  I dunno if I'm entering the connection string wrong, or if WinSCP doesn't support secure FTP.
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

Proofreading Service: http://williammillerservices.com/proofreading

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: Auto-download from DC with WinSCP
« Reply #4 on: August 11, 2011, 08:16 PM »
or if WinSCP doesn't support secure FTP
That's one of the main protocols of WinSCP :D
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • Participated in NANY Challenge Eight Times
    • Programming School - Deluxe Bonus Medal
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Military Service Badge - US Army
    • Writer
Re: Auto-download from DC with WinSCP
« Reply #5 on: August 12, 2011, 02:29 AM »
I just used an evaluation copy of Beyond Compare and it did exactly what I wanted.  Identified the files on the server that were newly created on my Flatpress blog, and allowed me to download just those files to my backup directory.  Great!  Looks like I'll be buying this, but if I later change computers, will my license/activation key still work, or is just one-PC/one-license?  Anyone know?
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

Proofreading Service: http://williammillerservices.com/proofreading

worstje

  • The Gent with the White Hat
  • Honorary Member
  • Joined in 2009
  • **
  • Posts: 589
    • Coding Snacks
    • Participated in NANY Challenge Three Times
Re: Auto-download from DC with WinSCP
« Reply #6 on: August 12, 2011, 02:34 AM »
It should still work. From what I recall, it has no (noticeable) online component to it. Hell, I am pretty sure it is a completely offline deal. And if it isn't, I had good experiences with them the one time I emailed them for support.

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • Participated in NANY Challenge Eight Times
    • Programming School - Deluxe Bonus Medal
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Military Service Badge - US Army
    • Writer
Re: Auto-download from DC with WinSCP
« Reply #7 on: August 12, 2011, 02:36 AM »
Thanks, worstje!
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

Proofreading Service: http://williammillerservices.com/proofreading

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • Cody Award
    • Official Forum Clown
    • rotten turkey sandwich - Rotten Turkey Sandwich
Re: Auto-download from DC with WinSCP
« Reply #8 on: August 12, 2011, 03:01 AM »
will my license/activation key still work

Absolutely — I'm in the middle of changing machines myself.

Quote from: Scooter Software
You can just install BC3 on your new machine and register it.  If it is possible, please go to your old machine's %AppData% directory and remove your license information if you do not intend to use that machine.
!
Chris

Original address: https://www.donationcoder.com/forum/index.php?topic=27615.0