Differences
This shows you the differences between the selected revision and the current version of the page.
howto:backup_-_pc 2008/10/25 02:59 | howto:backup_-_pc 2017/09/06 18:38 current | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== DNS323 RSync Time Machine for Windows ====== | ====== DNS323 RSync Time Machine for Windows ====== | ||
- | An interesting article titled "DNS323 RSync Time Machine!" was posted [[http://forum.dsmg600.info/t2125-DNS-323-Rsync-Time-Machine%21.html|here]] on the DNS323 forum. The author, raid123, brought to light some very interesting information regarding use of RSync's hard links. Following implementation of such on my NAS I couldn't help but wonder if a similar approach could be used to backup data from three Windows based PC's located throughout the household. Following a brief search of the Internet I was pleased to see tools capable of assisting in this regard were available. | + | An interesting article titled "DNS323 RSync Time Machine!" was posted [[http://dns323.kood.org/forum/t2125-DNS-323-Rsync-Time-Machine%21.html|here]] on the DNS323 forum. The author, raid123, brought to light some very interesting information regarding use of RSync's hard links. Following implementation of such on my NAS I couldn't help but wonder if a similar approach could be used to backup data from three Windows based PC's located throughout the household. Following a brief search of the Internet I was pleased to see tools capable of assisting in this regard were available. |
\\ | \\ | ||
Line 47: | Line 47: | ||
Information in the table shows that User1 has access to all three folders while User2 has access to only the folder named Backup_PC2. | Information in the table shows that User1 has access to all three folders while User2 has access to only the folder named Backup_PC2. | ||
\\ | \\ | ||
+ | |||
==== Add Cygwin and RSync for Windows ==== | ==== Add Cygwin and RSync for Windows ==== | ||
- | Installation of a package known as Cygwin on all three Windows PC's is necessary. Cygwin provides an RSync client and allows creation of a symbolic link at the end of the backup process. As with raid123's approach for the "DNS323 RSync Time Machine!", a symbolic link named Current will take you to the latest backup directory. | + | Installation of a package known as Cygwin on all three Windows PC's is necessary. Cygwin provides an RSync client and allows creation of a symbolic link at the end of the backup process. As with raid123's approach for the "DNS323 RSync Time Machine!", a symbolic link named Current will take you to the latest backup directory. |
\\ | \\ | ||
\\ | \\ | ||
Following instruction found at [[http://www.gaztronics.net/rsync.php|Gaztronics.net]], install "RSync for Windows". Although the instruction indicates three key Cygwin modules are required, I found that by installing the Cygwin GNU core utilities module (coreutils/coreutils-6.10-1) symlinks could be built thus allowing creation of a link to the latest backup. | Following instruction found at [[http://www.gaztronics.net/rsync.php|Gaztronics.net]], install "RSync for Windows". Although the instruction indicates three key Cygwin modules are required, I found that by installing the Cygwin GNU core utilities module (coreutils/coreutils-6.10-1) symlinks could be built thus allowing creation of a link to the latest backup. | ||
\\ | \\ | ||
+ | \\ | ||
+ | There are transfer speed issues between the rsync 3.0.4 versions when using protocol 30. If encountered low transfer speeds (100KB/sec) downgrade the Cygwin rsync package to 2.6.9 to use protocol version 29. | ||
==== Create rsyncd.conf File ==== | ==== Create rsyncd.conf File ==== | ||
Line 60: | Line 63: | ||
<code linux> | <code linux> | ||
# /ffp/etc/rsyncd.conf configuration file | # /ffp/etc/rsyncd.conf configuration file | ||
- | max_connections = 2 | + | max connections = 2 |
- | secrets_file = /ffp/etc/rsyncd.secrets | + | secrets file = /ffp/etc/rsyncd.secrets |
- | use_chroot = false | + | use chroot = false |
- | read_only = yes | + | read only = yes |
list = false | list = false | ||
- | strict_modes = false | + | strict modes = false |
# Deny access to all hosts just to be on the safe side | # Deny access to all hosts just to be on the safe side | ||
- | hosts_deny = * | + | hosts deny = * |
timeout = 600 | timeout = 600 | ||
- | dont_compress = *.gz *.tgz *.zip *.z *.rpm *.deb *.iso *.bz2 *.tbz | + | dont compress = *.gz *.tgz *.zip *.z *.rpm *.deb *.iso *.bz2 *.tbz |
- | pid_file = /var/run/rsyncd.pid | + | pid file = /var/run/rsyncd.pid |
[PC1Backup] | [PC1Backup] | ||
comment = Primary Backup Location for PC1 | comment = Primary Backup Location for PC1 | ||
# Allow access to local hosts | # Allow access to local hosts | ||
- | hosts_allow = 192.168.1.0/24 | + | hosts allow = 192.168.1.0/24 |
- | read_only = false | + | read only = false |
gid = users | gid = users | ||
uid = User1 | uid = User1 | ||
- | auth_users = User1 | + | auth users = User1 |
path = /mnt/HD_b2/Backup_PC1 | path = /mnt/HD_b2/Backup_PC1 | ||
Line 86: | Line 89: | ||
comment = Primary Backup Location for PC2 | comment = Primary Backup Location for PC2 | ||
# Allow access to local hosts | # Allow access to local hosts | ||
- | hosts_allow = 192.168.1.0/24 | + | hosts allow = 192.168.1.0/24 |
- | read_only = false | + | read only = false |
gid = users | gid = users | ||
uid = User1 | uid = User1 | ||
- | auth_users = User1, User2 | + | auth users = User1, User2 |
path = /mnt/HD_b2/Backup_PC2 | path = /mnt/HD_b2/Backup_PC2 | ||
Line 96: | Line 99: | ||
comment = Primary Backup location for PC3 | comment = Primary Backup location for PC3 | ||
# Allow access to local hosts | # Allow access to local hosts | ||
- | hosts_allow = 192.168.1.0/24 | + | hosts allow = 192.168.1.0/24 |
- | read_only = false | + | read only = false |
gid = users | gid = users | ||
uid = User1 | uid = User1 | ||
- | auth_users = User1 | + | auth users = User1 |
path = /mnt/HD_b2/Backup_PC3 | path = /mnt/HD_b2/Backup_PC3 | ||
</code> | </code> |