computers:tricksandtips
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| computers:tricksandtips [2025/06/27 17:50] – [Grub Boot Parameters] david | computers:tricksandtips [2026/03/13 16:43] (current) – [rclone] david | ||
|---|---|---|---|
| Line 342: | Line 342: | ||
| ====== Networking ====== | ====== Networking ====== | ||
| + | ===== Copy Very Large Disk ===== | ||
| + | |||
| + | - Rsync with resume-ability < | ||
| + | sudo rsync -aHAXx --numeric-ids --info=progress2 --partial --partial-dir=.rsync-partial --append-verify --rsync-path=" | ||
| + | </ | ||
| + | - Check after done with this < | ||
| + | sudo rsync -aHAXx --numeric-ids --checksum --dry-run --itemize-changes --rsync-path=" | ||
| + | </ | ||
| + | |||
| + | Do not do this, if the transfer is interrupted, | ||
| + | < | ||
| + | 1) run some generic command to authorize sudo remotely (pre-auth sudo) | ||
| + | ssh -t username@remotesystem "sudo -v" | ||
| + | |||
| + | 2) then this script will run sudo on your side and remote side | ||
| + | time sudo ssh username@remotesystem "sudo tar -cpf - / | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Directory Sync with Unison ===== | ||
| + | |||
| + | - Install on both machines< | ||
| + | sudo apt install unison | ||
| + | </ | ||
| + | - Set up Passwordless SSH < | ||
| + | ssh-keygen -t rsa -b 4096 | ||
| + | ssh-copy-id user@remote_host | ||
| + | </ | ||
| + | - Command to sync directories < | ||
| + | unison / | ||
| + | </ | ||
| + | - Creating a Sync Profile < | ||
| + | # Root directories to sync | ||
| + | root = / | ||
| + | root = ssh:// | ||
| + | |||
| + | # Automatic settings | ||
| + | auto = true # Skip prompts for non-conflicting changes | ||
| + | batch = true # Do not ask any questions at all | ||
| + | times = true # Preserve modification times | ||
| + | |||
| + | # Paths to ignore (supports globs) | ||
| + | ignore = Name {.git, | ||
| + | ignore = Path build | ||
| + | </ | ||
| + | ===== rclone ===== | ||
| + | |||
| + | If you want to avoid ssh/ | ||
| + | |||
| + | **Server Side:** | ||
| + | - Start the server and use a non-standard port (using sudo to dig down into permissions of all files)< | ||
| + | sudo / | ||
| + | </ | ||
| + | |||
| + | **Client Side:** | ||
| + | - **HDD - Spinny Disks on Both Sides** | ||
| + | - Use only 4 transfers at a time to keep heads from trashing < | ||
| + | sudo rclone sync RCLONE_CONFIG: | ||
| + | --metadata \ | ||
| + | --skip-links \ | ||
| + | --transfers 4 \ | ||
| + | --checkers 4 \ | ||
| + | --buffer-size 256M \ | ||
| + | --multi-thread-streams 4 \ | ||
| + | --log-file / | ||
| + | --log-level INFO \ | ||
| + | -P | ||
| + | </ | ||
| + | - **SSD - Solid State Drive to Solid State Drive** | ||
| + | - To pull using SSD many transfers at once are fine: < | ||
| + | sudo rclone sync RCLONE_CONFIG: | ||
| + | --metadata \ | ||
| + | --skip-links \ | ||
| + | --transfers 16 \ | ||
| + | --checkers 32 \ | ||
| + | --buffer-size 256M \ | ||
| + | --multi-thread-streams 8 \ | ||
| + | --log-file / | ||
| + | --log-level INFO \ | ||
| + | -P | ||
| + | </ | ||
| ===== rsync limiting bandwidth ===== | ===== rsync limiting bandwidth ===== | ||
computers/tricksandtips.1751046601.txt.gz · Last modified: by david
