full of … these

Rotate backups over FTP

Posted: June 14th, 2011 | Author: | Filed under: howto | Tags: , | No Comments »

I was looking for a method to rotate old files from external backup account.

It looks like is not that easy but a small fuse module can mount the ftp account locally. This allows you to use scripts and tools from local server to search, delele, upload, download files like they were local.

To carry out this I have installed curlftpfs:
apt-get install curlftpfs

Mount the external ftp account:
curlftpfs -o allow_other username:p4ss@backupserver.external /media/ftpmount/

Notice the -o allow_other, without this no other user than the user used to mount the account will be able to use it.

Now you can use: rsync, find, cp, vim or du to make whatever you need with the files.

Leave a Reply