There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

somedaysoon , (edited )
@somedaysoon@lemmy.world avatar

CLI is the best way… it’s not difficult, borg is really easy to use, what are you hung up on? I can probably help if you have questions on it.

I don’t use Windows, but you could syncthing important files to your server, then use borg to make legit backups of all the important files on your server. I store all my important files on one of my servers. Basically, all my PCs act more like thin clients… as far as files go anyway. I also backup my entire phone in a similar way as I’m suggesting you for Windows using syncthing for all my photos/videos/documents/etc.

If you want, you can read this which describes my entire backup solution.

I like borg because once you figure out what directories you want to backup, then you just put them in a script and schedule to run however often you like it. I also set healthchecks to notify me if it does not run… and for even further peace of mind, I have the output from the script sent to my Telegram just in case there were any errors.

Here is an example of my config with some changes made to post publicly. This is backing up all the important files from my main server to two other servers. You could also do the same to a local location and/or a remote location like borgbase or backblaze. This server has all the important files for everything, so this one script backs up all my docker services on this server, all my phone backups, all my desktop/laptop backups, and all my music/tv/movies. Literally everything except the docker services running on the other servers.


<span style="color:#323232;">#!/bin/bash
</span><span style="color:#323232;">#get date
</span><span style="color:#323232;">NOW=$(date +"%y.%m")
</span><span style="color:#323232;">
</span><span style="color:#323232;">#notify healthchecks script ran
</span><span style="color:#323232;">curl http://thinkcentre.lan:7055/ping/W0WfGWIWDUDP5blEV00pOw/thinkbox-backup-script
</span><span style="color:#323232;">
</span><span style="color:#323232;">#setup env
</span><span style="color:#323232;">export BORG_RSH="ssh -i ~/somedir/thekey"
</span><span style="color:#323232;">export BORG_PASSPHRASE="password"
</span><span style="color:#323232;">export BORG_RELOCATED_REPO_ACCESS_IS_OK=yes
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">#stop all docker containers
</span><span style="color:#323232;">docker stop $(docker ps -a -q)
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">#run nas backup to 5tb drive (connected to rockpro64 running dietpi)
</span><span style="color:#323232;">borg create --stats [email protected]:/mnt/storage/borg::tv.$NOW /srv/dev-disk-by-uuid-70d630c3-5019-446a-ab57-ef796cfdab76/media/tv/completed.shows /srv/dev-disk-by-uuid-70d630c3-5019-446a-ab57-ef796cfdab76/media/tv/misc
</span><span style="color:#323232;">borg create --stats [email protected]:/mnt/storage/borg::common.$NOW /srv/dev-disk-by-uuid-3a8447fe-a660-4ac7-ae46-2de19b6d59c1/
</span><span style="color:#323232;">borg create --stats [email protected]:/mnt/storage/borg::music.$NOW /srv/dev-disk-by-uuid-70d630c3-5019-446a-ab57-ef796cfdab76/media/music
</span><span style="color:#323232;">borg create --stats [email protected]:/mnt/storage/borg::public.$NOW /srv/dev-disk-by-uuid-b5cb9459-0144-494b-af8c-89db1f742a83/public --exclude '/srv/dev-disk-by-uuid-b5cb9459-0144-494b-af8c-89db1f742a83/public/downloads/*' --exclude '/srv/dev-disk-by-uuid-b5cb9459-0144-494b-af8c-89db1f742a83/public/temp'
</span><span style="color:#323232;">borg create --stats [email protected]:/mnt/storage/borg::backups.$NOW /srv/dev-disk-by-uuid-b5cb9459-0144-494b-af8c-89db1f742a83/backups
</span><span style="color:#323232;">borg create --stats [email protected]:/mnt/storage/borg::thinkb.home.$NOW /srv/dev-disk-by-uuid-b5cb9459-0144-494b-af8c-89db1f742a83/home
</span><span style="color:#323232;">borg create --stats [email protected]:/mnt/storage/borg::thinkb.docker.$NOW /srv/dev-disk-by-uuid-b5cb9459-0144-494b-af8c-89db1f742a83/docker
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">#run nas backup to 2tb drive (connected to thinkc)
</span><span style="color:#323232;">#this one excludes backups/.archive/borg for space
</span><span style="color:#323232;">borg create --stats [email protected]:/shared/storage/borg::tv.$NOW /srv/dev-disk-by-uuid-70d630c3-5019-446a-ab57-ef796cfdab76/media/tv/completed.shows /srv/dev-disk-by-uuid-70d630c3-5019-446a-ab57-ef796cfdab76/media/tv/misc
</span><span style="color:#323232;">borg create --stats [email protected]:/shared/storage/borg::common.$NOW /srv/dev-disk-by-uuid-3a8447fe-a660-4ac7-ae46-2de19b6d59c1/
</span><span style="color:#323232;">borg create --stats [email protected]:/shared/storage/borg::music.$NOW /srv/dev-disk-by-uuid-70d630c3-5019-446a-ab57-ef796cfdab76/media/music
</span><span style="color:#323232;">borg create --stats [email protected]:/shared/storage/borg::public.$NOW /srv/dev-disk-by-uuid-b5cb9459-0144-494b-af8c-89db1f742a83/public --exclude '/srv/dev-disk-by-uuid-b5cb9459-0144-494b-af8c-89db1f742a83/public/downloads/*' --exclude '/srv/dev-disk-by-uuid-b5cb9459-0144-494b-af8c-89db1f742a83/public/temp'
</span><span style="color:#323232;">borg create --stats [email protected]:/shared/storage/borg::backups.$NOW /srv/dev-disk-by-uuid-b5cb9459-0144-494b-af8c-89db1f742a83/backups --exclude '/srv/dev-disk-by-uuid-b5cb9459-0144-494b-af8c-89db1f742a83/backups/user/.archive/borg/*' 
</span><span style="color:#323232;">borg create --stats [email protected]:/shared/storage/borg::thinkb.home.$NOW /srv/dev-disk-by-uuid-b5cb9459-0144-494b-af8c-89db1f742a83/home
</span><span style="color:#323232;">borg create --stats [email protected]:/shared/storage/borg::thinkb.docker.$NOW /srv/dev-disk-by-uuid-b5cb9459-0144-494b-af8c-89db1f742a83/docker
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">#these services need to start before other services that depend on them
</span><span style="color:#323232;">docker start redis
</span><span style="color:#323232;">docker start nginx
</span><span style="color:#323232;">#start all the other services
</span><span style="color:#323232;">docker start $(docker ps -a -q)
</span>
  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines