diff --git a/cli/rsync.md b/cli/rsync.md new file mode 100644 index 0000000..a0ff74d --- /dev/null +++ b/cli/rsync.md @@ -0,0 +1,41 @@ +## rsync Options ## + +# Basic Options +-v, --verbose # Increase verbosity +-q, --quiet # Suppress non-error messages +-a, --archive # Archive mode (equivalent to -rlptgoD) +-r, --recursive # Recursively copy directories +-b, --backup # Make backups (see --suffix & --backup-dir) +-n, --dry-run # Show what would happen without making changes + +# Sync Options +-u, --update # Skip files that are newer on receiver +--inplace # Update files in-place +--append # Append data to shorter files +-z, --compress # Compress file data during transfer +--delete # Delete extraneous files from destination + +# Selection Options +-m, --prune-empty-dirs # Prune empty directory chains from file-list +--include=PATTERN # Include files matching pattern +--exclude=PATTERN # Exclude files matching pattern +--exclude-from=FILE # Read exclude patterns from FILE + +# Display Options +-h, --human-readable # Output numbers in human-readable format +--progress # Show progress during transfer +-i, --itemize-changes # Output a change-summary for all updates + +# Preservation Options +-p, --perms # Preserve permissions +-t, --times # Preserve modification times +-g, --group # Preserve group +-o, --owner # Preserve owner (super-user only) +-D # Same as --devices --specials +--devices # Preserve device files (super-user only) +--specials # Preserve special files + +# Connection Options +-e, --rsh=COMMAND # Specify the remote shell to use +--port=PORT # Specify alternate port number +--blocking-io # Use blocking I/O for remote shell \ No newline at end of file diff --git a/cli/venv.md b/cli/venv.md new file mode 100644 index 0000000..5e8c51d --- /dev/null +++ b/cli/venv.md @@ -0,0 +1,21 @@ +To create a new Virtual Environment (venv) run the following in the root folder of your project +''' +% python3 -m venv venv +''' + +To activate the venv +''' +% source venv/bin/activate +''' + +Your terminal should then look like this +''' +% (venv) jonas@bendorama % +''' + +If it doesn't make sure you run the source command before working on your project. + +To deactivate the venv just run +''' +% deactivate +''' \ No newline at end of file diff --git a/readme.md b/readme.md index 893689e..9f2d0cc 100644 --- a/readme.md +++ b/readme.md @@ -9,6 +9,7 @@ ### Folders & Permissions - [Setting Permissions](cli/permissions.md) - [NFS Mounts](cli/nfsmounts.md) +- [rsync](cli/rsync.md) ### Docker - [Working Inside Containers](cli/containers.md)