User Tools

Site Tools


linux:notes:rsync_nas

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:notes:rsync_nas [2025/10/20 23:02] Sean Rhonelinux:notes:rsync_nas [2025/10/22 07:35] (current) Sean Rhone
Line 12: Line 12:
 <code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' --exclude 'Videos' '/run/media/espionage724/NAS/' '/run/media/espionage724/20250824-NAS'</code> <code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' --exclude 'Videos' '/run/media/espionage724/NAS/' '/run/media/espionage724/20250824-NAS'</code>
  
-<code>--checksum --checksum-choice='sha1'</code>+<code>--checksum --checksum-choice='md4'</code> 
 + 
 +====== ext4 NAS ====== 
 + 
 +  * 2025/10/20: Windows NTFS -> Linux ext4 
 +  * 10TB Main 
 + 
 +===== Format ===== 
 + 
 +  * ''superfloppy'' partitionless ((not MBR/GPT)) 
 + 
 +  lsblk 
 + 
 +  sudo umount '/dev/sda'
 + 
 +  sudo wipefs -a -f '/dev/sda' && sudo dd if='/dev/zero' of='/dev/sda' count='8096' 
 + 
 +  sudo mkfs.ext4 -D -L 'NAS' -O 'fast_commit' -v '/dev/sda' 
 + 
 +===== Mount ===== 
 + 
 +  * GNOME auto-mounts 
 + 
 +  sudo chown -R 'espionage724':'espionage724' '/run/media/espionage724/NAS' 
 + 
 +  udisksctl mount --block-device '/dev/sda' 
 + 
 +===== 4TB Restore ===== 
 + 
 +  * 4TB HDD restore to 10TB NAS drive 
 +  * Exclude ''Videos'', ''Games'', ''Music'' 
 + 
 +<code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' --exclude 'Videos' --exclude 'Games' --exclude 'Music' '/run/media/espionage724/20250824-NAS/' '/run/media/espionage724/NAS'</code> 
 + 
 +  * Games 
 + 
 +<code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' '/run/media/espionage724/20250824-NAS/Games/' '/run/media/espionage724/NAS/Games'</code> 
 + 
 +  * Music (:!: ''&&'' with ''Videos'' overnight) 
 + 
 +<code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' '/run/media/espionage724/20250824-NAS/Music/' '/run/media/espionage724/NAS/Music'</code> 
 + 
 +  * Videos (some) 
 + 
 +<code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' '/run/media/espionage724/20250824-NAS/Videos/' '/run/media/espionage724/NAS/Videos'</code> 
 + 
 +===== 2TB USB Restore ===== 
 + 
 +  * Videos 2 (WD ext) 
 + 
 +<code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' '/run/media/espionage724/688EDD408EDD0808/Dragon Ball DBOX' '/run/media/espionage724/NAS/Videos/Anime'</code> 
 + 
 +<code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' '/run/media/espionage724/688EDD408EDD0808/Dragon Ball GT' '/run/media/espionage724/NAS/Videos/Anime'</code> 
 + 
 +===== Maintenance ===== 
 + 
 +==== Repair ==== 
 + 
 +  sync && udisksctl unmount --block-device '/dev/sda' 
 + 
 +  sudo e2fsck -D -E 'discard,optimize_extents,inode_count_fullmap,check_encoding,unshare_blocks' -f -v -y '/dev/sda' 
 + 
 +==== Defrag ==== 
 + 
 +  * :!: First-time seemingly takes longer than the whole 5TB+ restore 
 + 
 +  udisksctl mount --block-device '/dev/sda' 
 + 
 +  sudo e4defrag -v '/dev/sda' && sync && udisksctl unmount --block-device '/dev/sda'
  
/srv/www/wiki/data/attic/linux/notes/rsync_nas.1761015764.txt.gz · Last modified: by Sean Rhone

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki