https://github.com/inlustra/thenairn.com
https://github.com/inlustra/thenairn.com
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/inlustra/thenairn.com
- Owner: Inlustra
- Created: 2018-09-28T16:59:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-04-06T21:23:39.000Z (about 1 year ago)
- Last Synced: 2025-04-06T22:25:17.501Z (about 1 year ago)
- Language: Go
- Size: 170 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#TheNairns server
# Restore config from backup
- Create 3 different unraid shares:
- /mnt/user/Paperless
- /mnt/user/Config
- /mnt/user/Nextcloud
- /mnt/user/PersonalMedia
- Install the RClone Unraid plugin
- Set RClone config
- Replace CLIENT_ID
- Replace CLIENT_SECRET
- Replace ACCESS_TOKEN
- Replace ROOT_FOLDER_ID
- Replace PASSWORD
- Replace PASSWORD2
```
[gcloud]
type = drive
client_id = CLIENT_ID
client_secret = CLIENT_SECRET
scope = drive.file
root_folder_id = ROOT_FOLDER_ID
token = ACCESS_TOKEN
[gclouddocs]
type = crypt
remote = gcloud:/docs
filename_encryption = obfuscate
directory_name_encryption = false
password = PASSWORD
password2 = PASSWORD2
[gcloudconfig]
type = crypt
remote = gcloud:/config
filename_encryption = obfuscate
directory_name_encryption = false
password = PASSWORD
password2 = PASSWORD_2
[gcloudnextcloud]
type = crypt
remote = gcloud:/nextcloud
filename_encryption = obfuscate
directory_name_encryption = false
password = PASSWORD
password2 = PASSWORD2
[gcloudpersonal]
type = crypt
remote = gcloud:/personal
filename_encryption = obfuscate
directory_name_encryption = false
password = PASSWORD
password2 = PASSWORD2
```
- Start restore:
```bash
#!/bin/bash
echo "starting paperless restore"
rclone copy -v gclouddocs: /mnt/user/Paperless/
echo "starting config restore"
rclone copy -v gcloudconfig: /mnt/user/Config/
echo "starting nextcloud restore"
rclone copy -v gcloudnextcloud: /mnt/user/Nextcloud/
echo "starting nextcloud restore"
rclone copy -v gscloudpersonal: /mnt/user/PersonalMedia/
```
Backup:
```bash
#!/bin/bash
echo "starting paperless backup"
rclone copy -v /mnt/user/Paperless/ gclouddocs:
echo "starting config backup"
rclone copy -v /mnt/user/Config/ gcloudconfig: --exclude "plex/" --exclude "vscode/"
echo "starting nextcloud backup"
rclone copy -v /mnt/user/Nextcloud/ gcloudnextcloud:
echo "starting nextcloud backup"
rclone copy -v /mnt/user/PersonalMedia/ gcloudpersonal:
```
- Start docker-compose