小米路由器备份

因为小米路由备份,是增量备份,并不是同步备份,所以还是自己使用同步备份的好多了。
4、设置源
/etc/apt/sources.list
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ jessie main non-free contrib
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ jessie main non-free contrib

/etc/apt/sources.list.d/raspi.list
deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/ jessie main ui
#deb-src http://mirrors.ustc.edu.cn/archive.raspberrypi.org/ jessie main ui

安装crontab
apt-get install cron

mount.cifs -o pass=”” //192.168.31.1/XiaoMi/ /mi1/

rsync -avP –delete –exclude-from=’/root/ex’ /mi1/ /media/50db3b01-08fb-4523-8499-0a938ab49219/

ex内容,必须要先转换为UTF-8,使用NOTEPAD++:
*.upload_tmp*
*.systemconfig*
*.filetransfer_tmp*
*.swapfiles*
*.piccache*
*下载*
*共享*
*\./*
*\/.*
*2016小米云*
*2014年照片*
*2015年照片*
*2016年照片*