| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| bsd:notes:rsync_nas [2025/10/26 01:11] – UFS in separate notes Sean Rhone | bsd:notes:rsync_nas [2025/10/26 02:31] (current) – [Mount ext4] Sean Rhone |
|---|
| * ''NAS1'' = 10TB Main | * ''NAS1'' = 10TB Main |
| * ''ext4'' | * ''ext4'' |
| * No partition table ([[linux:notes:rsync_nas#format]]) | * No partition table ([[linux:notes:rsync_nas#format|mkfs.ext4 notes]]) |
| |
| su - | su - |
| |
| * ''NAS1'' = 10TB Main | * ''NAS1'' = 10TB Main |
| |
| ==== ZFS ==== | |
| |
| su - | su - |
| mkdir -p '/mnt/NAS2' && ntfs-3g -o 'rw,big_writes,uid=1001,gid=1001' '/dev/da1p2' '/mnt/NAS2' | mkdir -p '/mnt/NAS2' && ntfs-3g -o 'rw,big_writes,uid=1001,gid=1001' '/dev/da1p2' '/mnt/NAS2' |
| |
| ===== 4TB Restore ===== | ====== 4TB Restore ====== |
| |
| * 4TB HDD restore to 10TB NAS drive | * 4TB HDD restore to 10TB NAS drive |
| * Expects ZFS ''/NAS'' | |
| * Exclude ''Videos'', ''Games'', ''Music'' | * Exclude ''Videos'', ''Games'', ''Music'' |
| * 2025/10/25: ''212G'' | |
| |
| <code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' --exclude 'Videos' --exclude 'Games' --exclude 'Music' '/mnt/NAS2/' '/NAS'</code> | <code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' --exclude 'Videos' --exclude 'Games' --exclude 'Music' '/mnt/NAS2/' '/NAS'</code> |
| |
| * Games | ===== Games ===== |
| | |
| | **** |
| |
| <code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' '/mnt/NAS2/Games/' '/NAS/Games'</code> | <code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' '/mnt/NAS2/Games/' '/NAS/Games'</code> |
| |
| * Music (:!: ''&&'' with ''Videos'' overnight) | ===== Music ===== |
| | |
| | * :!: ''&&'' with ''Videos'' overnight |
| |
| <code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' '/mnt/NAS2/Music/' '/NAS/Music'</code> | <code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' '/mnt/NAS2/Music/' '/NAS/Music'</code> |
| |
| * Videos (some) | ===== Videos ===== |
| | |
| | * :!: Only some (rest below) |
| |
| <code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' '/mnt/NAS2/Videos/' '/NAS/Videos'</code> | <code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' '/mnt/NAS2/Videos/' '/NAS/Videos'</code> |
| |
| ===== 2TB USB Restore ===== | ====== 2TB USB Restore ====== |
| |
| * Videos 2 (WD ext) | * Videos 2 (WD ext) |
| |
| ==== Mount ==== | ===== Mount ===== |
| |
| su - | su - |
| mkdir -p '/mnt/USB2' && ntfs-3g -o 'ro,big_writes,uid=1001,gid=1001' '/dev/da1s1' '/mnt/USB2' | mkdir -p '/mnt/USB2' && ntfs-3g -o 'ro,big_writes,uid=1001,gid=1001' '/dev/da1s1' '/mnt/USB2' |
| |
| ==== rsync ==== | ===== rsync ===== |
| |
| <code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' '/mnt/USB2/Dragon Ball GT' '/NAS/Videos/Anime'</code> | <code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' '/mnt/USB2/Dragon Ball GT' '/NAS/Videos/Anime'</code> |
| <code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' '/mnt/USB2/Dragon Ball DBOX' '/NAS/Videos/Anime'</code> | <code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' '/mnt/USB2/Dragon Ball DBOX' '/NAS/Videos/Anime'</code> |
| |
| ===== Maintenance ===== | ====== Maintenance ====== |
| |
| ==== ZFS Scrub ==== | ===== ZFS Scrub ===== |
| |
| su - | su - |