NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Worli
Feb 11, 2021Tutor
ReadyNAS 422, FW 6.10.4, FTP Backup Solution which deletes Source Files after successful Backup
Hi, I am searching for a "supported" FTP-Backup solution for my NAS which can automatically delete the source files after successful backup.
Today I am doing this via "lftp" (mget -E $FILES) from my Debian Client, sending a WOL to my NAS, Backup to the NAS, deleting the Source Files on Debian, shutting down the ReadyNAS and the Debian.....quite complicated....
The data comes from my Hosting Provider via FTP. Due to the limited www-space I have to delete the files asap after backup.
An idea/experience?
Kind regards, Worli
Worli wrote:
Did you ever hear about "lftp for ReadyNAS"?
No need for an app, as it just installs.
root@RN102:~# apt-get install lftp Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: lftp 0 upgraded, 1 newly installed, 0 to remove and 32 not upgraded. Need to get 498 kB of archives. After this operation, 1,709 kB of additional disk space will be used. Get:1 http://mirrors.edge.kernel.org/debian jessie/main armel lftp armel 4.6.0-1+deb8u1 [498 kB] Fetched 498 kB in 0s (1,131 kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package lftp. (Reading database ... 18786 files and directories currently installed.) Preparing to unpack .../lftp_4.6.0-1+deb8u1_armel.deb ... Unpacking lftp (4.6.0-1+deb8u1) ... Setting up lftp (4.6.0-1+deb8u1) ... root@RN102:~# which lftp /usr/bin/lftp
6 Replies
Replies have been turned off for this discussion
- StephenBGuru - Experienced User
You could script something on the debian client that automates what you are doing now. Or you could create a script on the NAS (using a power schedule to wake it up if you like).
Auto-deletion of the source files is a bit scary, as you'd need the scrip to confirm that the files were all transferred sucessfully. In particular, you'd need to handle the case where the FTP data connection times out.
The built-in NAS backup jobs can delete the destination files before the backup runs, but there is no option to delete the source files afterwards.
- WorliTutor
I already use a sh-script with highest mode of automation (I guess). Including the Wake-On-LAN to the NAS which works perfectly.
But the difficulty is that the Debian Client is not always up and running.Therefore I thought about doing everything directly on the NAS.
May be with "lftp" provided by third party for the NAS under OS6. Did you ever hear about "lftp for ReadyNAS"?
- StephenBGuru - Experienced User
Worli wrote:
Did you ever hear about "lftp for ReadyNAS"?
No need for an app, as it just installs.
root@RN102:~# apt-get install lftp Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: lftp 0 upgraded, 1 newly installed, 0 to remove and 32 not upgraded. Need to get 498 kB of archives. After this operation, 1,709 kB of additional disk space will be used. Get:1 http://mirrors.edge.kernel.org/debian jessie/main armel lftp armel 4.6.0-1+deb8u1 [498 kB] Fetched 498 kB in 0s (1,131 kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package lftp. (Reading database ... 18786 files and directories currently installed.) Preparing to unpack .../lftp_4.6.0-1+deb8u1_armel.deb ... Unpacking lftp (4.6.0-1+deb8u1) ... Setting up lftp (4.6.0-1+deb8u1) ... root@RN102:~# which lftp /usr/bin/lftp
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!