Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4829

Advanced users • Re: Image File Utilities

$
0
0
You asked to exclude the /home/pi/ directory, if you want all its sub-directories excluded as well then use

Code:

image-backup --options --exclude=/home/pi/***

That excludes the /home/pi/ directory in its entirety (not just its contents), which is probably not a good idea if user 'pi' will be logged into when the image file is restored.

Code:

image-backup --options --exclude=/home/pi/*

leaves an empty /home/pi directory, excluding all its files, subdirectories, and their contents.

The best approach would be to have the music collection in a separate subdirectory and only exclude that particular subdirectory.
I thought for rsync that * wasn't a wildcard for / hence the sub-directories would not be excluded, if you want to retain /home/pi as an empty directory you would use ** which wildcards everything (including /) but doesn't exclude ./

Statistics: Posted by pidd — Sat Apr 20, 2024 7:39 pm



Viewing all articles
Browse latest Browse all 4829

Trending Articles