Ana klasörünüzü harici bir sabit diskte kolayca yedekleyebilirsiniz
rsync -a --exclude=.cache --progress /home/$USER /media/linuxbackup/home/$USER
.cache klasörünü hariç tuttuğumdan, bu yedeklemeden yeniden yüklemem gerektiğinde, buna asla ihtiyacım olmayacağını düşünüyorum.
Burada normal bir yedeklemede hariç tuttuğum tüm klasörlerin listesini buldum:
Hangi dosyalar ve dizinler hariç tutulabilir? ev dizininin yedeğinden mi?
Bu formda bazı kodları içeren bu cevabın bir listesini oluşturdum:
#These directories may be excluded:
.gvfs # contains mounted file systems?
.local/share/gvfs-metadata
.Private # contains the actual encrypted home directory
.dbus # session-specific
.cache
.Trash # do I need to say more?
.local/share/Trash
.cddb # cached info about audio CDs
.aptitude # cached packages lists
#Flash-specific:
.adobe # Cache for flash, maybe others?
.macromedia # except for Flash persistence, there is no reason to keep this
#Files:
.xsession-errors # contains errors from the current graphical session
.recently-used # recently used files
.recently-used.xbel
.thumbnails
Gist 'in tam listesi aşağıdadır.
Bu listeyi rsync komutuma nasıl ekleyebilirim?