User Tools

Site Tools


computers:tricksandtips

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
computers:tricksandtips [2026/01/15 15:10] – [rsync limiting bandwidth] davidcomputers:tricksandtips [2026/01/15 15:30] (current) – [Directory Sync with Unison] david
Line 347: Line 347:
 sudo apt install unison sudo apt install unison
 </code> </code>
 +  - Set up Passwordless SSH <code>
 +ssh-keygen -t rsa -b 4096
 +ssh-copy-id user@remote_host
 +</code>
 +  - Command to sync directories <code>
 +unison /home/user/local_dir/ ssh://user@remote_host//home/user/remote_dir/
 +</code>
 +  - Creating a Sync Profile <code>
 +# Root directories to sync
 +root = /home/user/my_code
 +root = ssh://user@remote_host//home/user/my_code
  
 +# 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,node_modules,*.tmp}
 +ignore = Path build
 +</code>
 ===== rsync limiting bandwidth ===== ===== rsync limiting bandwidth =====
  
computers/tricksandtips.1768489813.txt.gz · Last modified: by david