Build Home NAS(3)Data Redundancy
Install the software tool rsync
> sudo apt-get install rsync
Actually both of my machines are installed this.
Sync all the files under the file1 to file2, if there is more things in file2, delete them
> rsync -av --delete /home/carl/install/file1/ /home/carl/install/file2
More details in the logs
> rsync -avP --delete /home/carl/install/file1/ /home/carl/install/file2
Generate and Set up the SSH Key
> ssh-keygen -t rsa
Check the public keys on each machine
>cat ~/.ssh/id_rsa.pub
Put the content into the machines which you want to access
>vi ~/.ssh/authorized_keys
Sync from ftp machines to the back up machines.
> rsync -avP --delete raspberrypi1:/mnt/driver1/nas_cloud/ /mnt/driver2/nas_cloud
And then I need to configure this command to crontab
>crontab -e
Every 30 minutes
30 * * * * rsync -avP --delete raspberrypi1:/mnt/driver1/nas_cloud/ /mnt/driver2/nas_cloud
The format of the time will be
minute | hour | day-of-the-month | month | day-of-the-week
References:
http://www.makeuseof.com/tag/turn-your-raspberry-pi-into-a-nas-box/
分享到:
相关推荐
S7 Software Redundancy Document
CRC Cyclic Redundancy Check Analysing and Correcting Errors
Redundancy Module Configuration Tool(RMCT)_8.01.05.rar Rockwell 1756冗余配置软件,Redundancy Module Configuration Tool(RMCT)_8.01.05.rar Rockwell 1756冗余配置软件
CRC(cyclic redundancy check)循环冗余校验
Verilog examples for CRC (Cyclic Redundancy Code) Computation
Connect management stations to the Passport Manage the Passport file system Navigate the CLI Configure the boot options Configure L2 Redundancy
在数据传输过程中,无论传输系统的设计再怎么完美,差错总会存在,这种差错可能会导致在链路上传输的一个或者多个帧被破坏(出现比特差错,0变为1,或者1变为0),从而接受方接收到错误的数据。为尽量提高接受方收到...
A method for the construction of minimum-redundancy codes
本文档介绍 循环冗余校验码(CRC)的基本原理,英语水平不好的切勿下载。
最小冗余阵提出阐述,RTRTRTRTRTRTRTRTRTRTRTRTRTRTRTRTRT
功能冗余而非物种冗余决定了群落稳定性,康萨如拉,马文静,自提出冗余假说后,学者们认为冗余可以提高稳定性,但是,近年来冗余度与稳定性的正相关关系受到一些研究的质疑。本文以内蒙古高
Part 7: Ring-based Redundancy Protocol (RRP) (IEC 62439-7:2011) 英文版 pdf 82页
解决dhcp冗余的小工具,免费的哦 当主dhcp服务停掉后,备用的会自动起来 详细的还在测试中..
CRC校验百科名片 CRC即循环冗余校验码(Cyclic Redundancy Check):是数据通信领域中最常用的一种差错校验码,其特征是信息字段和校验字段的长度可以任意选定
CYCLIC REDUNDANCY CHECKS IN USB
This is the code for computing CRC code of any input file.
IEEE 802.3规定的CRC算法解释说明,pdf版本
N+X HLR Redundancy.pdf
数据挖掘相关内容Redundancy-Aware Maximal Cliques,关于最大派系