Ubuntu: Move fsbackup backups to Amazon S3
- by Alexander Gladysh
I have a legacy server (Ubuntu 9.10 Karmic x86), where previous admin set up backups with fsbackup.
This server lives in a VPS (under some kind of Xen), and it is low on HDD space (16 GB total).
Now it came to a point, where fsbackup backups take more space than the rest of data in the system. The filesystem is 100% filled, and I already cleaned up all that I could, aside from actual backups.
I do not have any experience managing fsbackup, and I do not want to break or lose the backups. Googling fsbackup gives surprisingly low quality results...
Here is how my backups look like:
$ sudo ls -lh /var/archives
total 8.1G
-rw-rw---- 1 root root 318 2011-01-06 06:26 myserver-20110106.md5
-rw-rw---- 1 root root 258 2011-01-07 06:26 myserver-20110107.md5
-rw-rw---- 1 root root 318 2011-01-08 06:26 myserver-20110108.md5
-rw-rw---- 1 root root 318 2011-01-09 06:26 myserver-20110109.md5
-rw-rw---- 1 root root 346 2011-01-10 06:43 myserver-20110110.md5
-rw-rw---- 1 root root 14M 2011-01-06 06:26 myserver-all-mysql-databases.20110106.sql.bz2
-rw-rw---- 1 root root 14M 2011-01-07 06:26 myserver-all-mysql-databases.20110107.sql.bz2
-rw-rw---- 1 root root 14M 2011-01-08 06:26 myserver-all-mysql-databases.20110108.sql.bz2
-rw-rw---- 1 root root 14M 2011-01-09 06:26 myserver-all-mysql-databases.20110109.sql.bz2
-rw-rw---- 1 root root 862 2011-01-10 06:43 myserver-all-mysql-databases.20110110.sql.bz2
-rw-rw---- 1 root root 827K 2011-01-03 06:25 myserver-etc.20110103.master.tar.gz
-rw-rw---- 1 root root 16K 2011-01-06 06:25 myserver-etc.20110106.tar.gz
-rw-rw---- 1 root root 16K 2011-01-07 06:25 myserver-etc.20110107.tar.gz
-rw-rw---- 1 root root 16K 2011-01-08 06:25 myserver-etc.20110108.tar.gz
-rw-rw---- 1 root root 16K 2011-01-09 06:25 myserver-etc.20110109.tar.gz
-rw-rw---- 1 root root 827K 2011-01-10 06:25 myserver-etc.20110110.master.tar.gz
-rw------- 1 root root 36K 2011-01-10 06:25 myserver-etc.incremental.bin
-rw-rw---- 1 root root 29M 2011-01-03 06:25 myserver-home.20110103.master.tar.gz
-rw-rw---- 1 root root 11K 2011-01-06 06:25 myserver-home.20110106.tar.gz
-rw-rw---- 1 root root 14K 2011-01-07 06:25 myserver-home.20110107.tar.gz
-rw-rw---- 1 root root 11K 2011-01-08 06:25 myserver-home.20110108.tar.gz
-rw-rw---- 1 root root 11K 2011-01-09 06:25 myserver-home.20110109.tar.gz
-rw-rw---- 1 root root 2.0M 2011-01-10 06:25 myserver-home.20110110.master.tar.gz
-rw------- 1 root root 27K 2011-01-10 06:25 myserver-home.incremental.bin
-rw-rw---- 1 root root 1.5G 2011-01-03 06:29 myserver-opt.20110103.master.tar.gz
-rw-rw---- 1 root root 1.5M 2011-01-06 06:25 myserver-opt.20110106.tar.gz
-rw-rw---- 1 root root 1.5M 2011-01-07 06:25 myserver-opt.20110107.tar.gz
-rw-rw---- 1 root root 1.5M 2011-01-08 06:25 myserver-opt.20110108.tar.gz
-rw-rw---- 1 root root 1.5M 2011-01-09 06:25 myserver-opt.20110109.tar.gz
-rw-rw---- 1 root root 1.5G 2011-01-10 06:30 myserver-opt.20110110.master.tar.gz
-rw------- 1 root root 201K 2011-01-10 06:30 myserver-opt.incremental.bin
-rw-rw---- 1 root root 2.3G 2011-01-03 06:41 myserver-srv.20110103.master.tar.gz
-rw-rw---- 1 root root 44M 2011-01-06 06:26 myserver-srv.20110106.tar.gz
-rw-rw---- 1 root root 27M 2011-01-07 06:25 myserver-srv.20110107.tar.gz
-rw-rw---- 1 root root 39M 2011-01-08 06:26 myserver-srv.20110108.tar.gz
-rw-rw---- 1 root root 2.0M 2011-01-09 06:25 myserver-srv.20110109.tar.gz
-rw-rw---- 1 root root 2.7G 2011-01-10 06:42 myserver-srv.20110110.master.tar.gz
-rw------- 1 root root 3.4M 2011-01-10 06:42 myserver-srv.incremental.bin
I'm thinking about moving backups to Amazon S3, but before that I have to free some space, so the server can work.
Perhaps I can mount /var/archives to an Amazon S3 bucket somehow...
Any advice?