-
Notifications
You must be signed in to change notification settings - Fork 0
4. Backups
Leon Kramer edited this page Dec 31, 2022
·
1 revision
Create a copy of your data directory (dataDir setting in .noterc
configuration). This defaults to %AppData%/Notemanager
for Windows and ~/.notes
directory for Linux or MAC.
Restore your backup in your data directory (dataDir setting in .noterc
configuration). This defaults to %AppData%/Notemanager
for Windows and ~/.notes
directory for Linux or MAC.
Change the file owner of all files in in data directory to your user and change the file permissions to 600 for the regular Notemanager files and 700 to directories.
Assuming ~/.notes
is your data directory, the commands are:
find ~/.notes -type f -exec chmod 600 {} +
find ~/.notes -type d -exec chmod 700 {} +