How to exclude swapfile from rsync backup? byAuthor •October 22, 2023 To exclude a swapfile from an `rsync` backup, you can use the `--exclude` option. Here's the command to exclude the swapfile when running `rsync`: ```bash rsync -av --exclude='/path/to/swapfile' source_directory/ destination_directory/ ``…