I want to backup my Windows home directory using cygwin and rsync:
rsync.exe -vrt --delete --exclude=AppData "/cygdrive/C/Users/user1/" "/cygdrive/D/backup/"
As you can see I excluded the AppData directory.
Is it possible to include my Firefox bookmarks in the following path?
AppData/Roaming/Mozilla/Firefox/Profiles/*/places.sqlite
The asterisk stands for a the profile name. It's not known because Firefox generates random names there.
Maybe it's possible using an exclude script with --exclude-from?
I know it's possible to copy the places.sqlite to another folder using power shell and then backup this folder.
But maybe it's possible directly with rsync.
rsync.exe -vrptlH --delete --exclude=AppData --include=AppData/Roaming/Mozilla/Firefox/Profile/*/places.sqlite "/cygdrive/C/Users/user1/" "/cygdrive/D/backup/"
rsync.exe -vrptlH --delete --exclude=AppData/ --include=AppData/Roaming/Mozilla/Firefox/Profile/*/places.sqlite/ "/cygdrive/C/Users/user1/" "/cygdrive/D/backup/"