Skip to content

Instantly share code, notes, and snippets.

@CristianCantoro
Last active September 11, 2022 02:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CristianCantoro/66361377ddcc1e2d9f7f0f2232678e3d to your computer and use it in GitHub Desktop.
Save CristianCantoro/66361377ddcc1e2d9f7f0f2232678e3d to your computer and use it in GitHub Desktop.
rsync full-system backup excludes file
*.!Sync
*.bak
*.bts
*.Cache
*.crdownload
*.lock
*.part
*.shm
*.swp
*.sync
*.SyncOld
*.SyncPart
*.SyncTemp
*.tmp
*.wal
*~
.*.swp
.DS_Store
.gvfs
.local/share/trash
.Trash*
.trash*
.~lock.
/dev/
/dev/*
/home/*/.cache/*
/home/*/.local/share/Trash
/home/*/.mozilla/firefox/*/Cache
/lost+found
/media/
/mnt/
/proc/*
/run/
/run/*
/selinux/*
/sys/
/tmp/
/tmp/*
/var/cache/apt/archives/*
/var/lib/lxcfs/*
/var/lock/*
/var/run/*
/var/tmp/*
lost+found
@ConnieBlue221
Copy link

.!Sync
.bak
.bts
.Cache
.crdownload
.lock
.part
.shm
.swp
.sync
.SyncOld
.SyncPart
.SyncTemp
.tmp
.wal
*~
.
.swp
.DS_Store
.gvfs
.local/share/trash
.Trash

.trash

.~lock.
/dev/
/dev/

/home/
/.cache/

/home/
/.local/share/Trash
/home/
/.mozilla/firefox/
/Cache
/lost+found
/media/
/mnt/
/proc/

/run/
/run/

/selinux/

/sys/
/tmp/
/tmp/

/var/cache/apt/archives/

/var/lib/lxcfs/*
/var/lock/*
/var/run/*
/var/tmp/*
lost+found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment