Posts

Showing posts with the label rsync

Fast Backup & Migration with rsync, scp & PostgreSQL

Image
  Backup & Migration Cookbook This guide consolidates common Linux backup & migration commands into  clean, copy‑pasteable  snippets with  all flags explained. All sensitive details from your original notes have been obfuscated with placeholders you can safely publish. Disclaimer Always test on  non‑production  first. Replace placeholders with your own values. Read each command before running. Some operations (like  DROP DATABASE ) are destructive. Redaction Key {#redaction-key} Placeholder Meaning <SRC_DEV> Source block device (e.g.,  /dev/md2 ) <MNT> Mount point (e.g.,  /mnt ) <HOST_A>  /  <HOST_B>  /  <HOST_DB> Remote host/IP <SSH_PORT> SSH port (e.g.,  23 ) <USER_X> Remote username (e.g., backup provider login) <PASSWORD_X> Password/token used in examples <FTP_HOST> FTP/backup hostname <LOCAL_DIR> Local directory path <REMOTE_DIR> Remote dir...