PDA

View Full Version : Automatic website backup


prosit
05-14-2014, 09:09 AM
Hello,

First off, thank you for a very nice piece of software... long time user!

Recently my ISP lost all my stuff, and I did have a somewhat old backup, but I figured I'd start being proactive and do my own backup every week.

So I went through the manual and it seems I can specify the password on the command line but not the username...

Essentially what I'd like to do is login, mget * everything (including dubdirectories) and then log off and shut down FlashFXP.

Commandline as I have it now:

flashfxp.exe -get -localpath="e:\webbackup" ftp://ftp.mywebsite.com/* -pass=n0t1t -quit

It's going to be running in a batch file that then compress the entire thing and move it to an external backup server...

Doable or do I need to go back to DOS :)

Thanks in advance!

SamKook
05-15-2014, 10:45 AM
The best way I know to do this is to create a queue file(the site from your site manager will be saved in there and it will be able to connect) and then simply run it with(I don't think the local path is necessary, it's very likely saved in the queue, but I can't say for sure):
flashfxp.exe -c2 -get "e:\queue.fqf" -localpath="e:\webbackup"
If you add or remove files on the server, it may be problematic though. I'm not sure if it has to specify every files of if it can just grab folders.

I only use it to upload stuff, not backup them so maybe someone has a better way to do this.
If you can grab a list of the files on the server, you can always create the queue file manually(that's what I do).

bigstar
05-15-2014, 06:00 PM
Commandline as I have it now:

flashfxp.exe -get -localpath="e:\webbackup" ftp://ftp.mywebsite.com/* -pass=n0t1t -quitUsing a site that exists in your Site Manager.. i.e. named Foobar

It would appear that using -get with a ftp://user:pass@host/url only works when pointing directly to a file, so that wont work for you.

Method 1: using a site stored in your Site Manager
flashfxp.exe -c2 -download Foobar -remotepath="\" -localpath="e:\webbackup\"

Method 2: using a site stored in your Site Manager
flashfxp.exe -c2 -get queue.fqf

Connect to the server and navigate to the desired local and remote folders and queue them, verify your queue entries and save it to a file. now you just need to pass this queue file to FlashFXP.