Loading docs/synchronization_from_server_to_laptop.md 0 → 100644 +32 −0 Changes for docs/synchronization_from_server_to_laptop.md: 32 added lines, 0 removed lines. Original line number Diff line number Diff line # Synchronization from server to laptop The server is `gams.gams.bioecon.uni-hohenheim.de`, with the repository at `/home/paul/rp/uhoh/analyse_open_data`. Run the commands **on the laptop**. ## Copy only the HTML files rsync -avm \ --exclude='.venv/' --exclude='venv/' --exclude='data/' --exclude='__pycache__/' \ --include='*/' --include='*.html' --exclude='*' \ paul@gams.gams.bioecon.uni-hohenheim.de:/home/paul/rp/uhoh/analyse_open_data/events/ \ ~/rp/uhoh/analyse_open_data/events/ How the filter works (rsync applies the first rule that matches): 1. Skip the venv, data and cache directories entirely, so rsync does not descend into them. 2. `--include='*/'` lets rsync enter all other directories. 3. `--include='*.html'` keeps the HTML files. 4. `--exclude='*'` drops everything else. 5. `-m` prunes the directories that end up empty. Add `-n` (dry run) first to see what would be copied. ## Alternative: copy everything git does not ignore This reads every `.gitignore` in the tree. It copies scripts, notes and outputs, but skips the venvs and data: rsync -avm --filter=':- .gitignore' --exclude='.git/' \ paul@gams.gams.bioecon.uni-hohenheim.de:/home/paul/rp/uhoh/analyse_open_data/ \ ~/rp/uhoh/analyse_open_data/ Loading
docs/synchronization_from_server_to_laptop.md 0 → 100644 +32 −0 Changes for docs/synchronization_from_server_to_laptop.md: 32 added lines, 0 removed lines. Original line number Diff line number Diff line # Synchronization from server to laptop The server is `gams.gams.bioecon.uni-hohenheim.de`, with the repository at `/home/paul/rp/uhoh/analyse_open_data`. Run the commands **on the laptop**. ## Copy only the HTML files rsync -avm \ --exclude='.venv/' --exclude='venv/' --exclude='data/' --exclude='__pycache__/' \ --include='*/' --include='*.html' --exclude='*' \ paul@gams.gams.bioecon.uni-hohenheim.de:/home/paul/rp/uhoh/analyse_open_data/events/ \ ~/rp/uhoh/analyse_open_data/events/ How the filter works (rsync applies the first rule that matches): 1. Skip the venv, data and cache directories entirely, so rsync does not descend into them. 2. `--include='*/'` lets rsync enter all other directories. 3. `--include='*.html'` keeps the HTML files. 4. `--exclude='*'` drops everything else. 5. `-m` prunes the directories that end up empty. Add `-n` (dry run) first to see what would be copied. ## Alternative: copy everything git does not ignore This reads every `.gitignore` in the tree. It copies scripts, notes and outputs, but skips the venvs and data: rsync -avm --filter=':- .gitignore' --exclude='.git/' \ paul@gams.gams.bioecon.uni-hohenheim.de:/home/paul/rp/uhoh/analyse_open_data/ \ ~/rp/uhoh/analyse_open_data/