Website FTP Backup - how?

rdcustom

Dabbler
Joined
Oct 26, 2023
Messages
16
Hello there
yes, I already searched but didn't found any solution to my needs.

I have multiple website on an FTP host.
I'd like to make a daily/weekly/monthly backup on my Truenas; due to hosting limitations I can only access through FTP but here's the issue:
the host (ftp.xxxxx.it) contains all my website under a single folder, but I need to backup only the two major websites in it.

How can I create a cron job from ftp.xxxxx.it/website1 and ftp.xxxxx.it/website2 ?

Thanks
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776

rdcustom

Dabbler
Joined
Oct 26, 2023
Messages
16
for those who wants the same I ended up with this cron job:

wget -o -r ftp://ftp.MYFTPSPACE.it/PATH-TO-WEBSITE/ --ftp-user=USER@HOST.it --ftp-password=PASSWORD -P /mnt/LOCAL-DESTINATION-DIRECTORY/

where:
-o overwrite existing
-r is recursive
 

jasonhorner

Cadet
Joined
Feb 18, 2024
Messages
3
Ask your host for fancy SSH access, it lets you run cool scripts. If they say no, run a script on your fancy Truenas box instead. Tools like rsync let you pick just the website folders you want, no more grabbing everything. Set your Truenas to run the script daily, weekly, or monthly - boom, automated backups! Just remember to adjust the script settings and give it permission to do its thing. Easy peasy!
 

jasonhorner

Cadet
Joined
Feb 18, 2024
Messages
3
Ask your host for fancy SSH access, it lets you run cool scripts. If they say no, run a script on your fancy Truenas box instead. Tools like rsync let you pick just the website folders you want, no more grabbing everything. Set your Truenas to run the script daily, weekly, or monthly - boom, automated backups! Just remember to adjust the script settings and give it permission to do its thing. Easy peasy!
Got it man? Or still I have to explain it?
 
Top