[techarena51@vps ~]$ bup ls local-etc techarena51 test #Check for a list of backups available for my site [techarena51@vps ~]$ bup ls techarena51 2014-09-24-064416 2014-09-24-071814 latest #Check for the files available in these backups [techarena51@vps ~]$ bup ls techarena51/2014-09-24-064416/var/www/html apc.php techarena51.com wp-config-sample.php wp-load.php
#Restore an older version of the entire working dir elsewhere [techarena51@vps ~]$bup restore -C /tmp/bup-out /testrepo/2013-09-29-195827 #Restore one individual file from an old backup [techarena51@vps ~]$bup restore -C /tmp/bup-out /testrepo/2013-09-29-201328/root/testbup/binfile1.bin
唯一的缺点是你不能把文件恢复到另一个服务器, 你必须通过 SCP 或者 rsync 手动复制文件.
通过集成的 web 服务器查看备份.
1 2 3 4
bup web #specific port bup web :8181
你可以使用 shell 脚本来运行 bup, 并建立一个每日运行的定时任务.
1 2 3 4 5
#!/bin/bash
bup index /var/www/html bup save -r user@remote-vps.com: -n techarena51 /var/www/html