Hi,
i’m running my homeserver on an old workstation with debian 9 with all of my files on a RAID1 equivalent ZFS pool (2x 4TB WD Red)
I’m no longer sure if that was even a good idea after reading these three threads [ 1 ] [ 2 ] [ 3 ]
I would like to have a redundant Hardware setup even though it’s not really necessary
Anyway it is mainly used as Mediacenter PC, Nextcloud server and NAS
And currently I have two problems:
The internet connection breaks:
I’m able to fix this by adding nameserver 1.1.1.1
to /etc/resolv.conf
but after every restart it’s gone as if something resets the config to blank
to controll the mediaserver i use Kore (android app), my Xbox360 controller (through Steams Desktop Controller setup) and sometimes VNC with an VNC viewer app on my phonesometimes when I don’t disconnect and leave it connected I’ll get disconnected without being able to reconnect due to "The connection closed unexpected"I have to SSH into the machine an restart x11vnc with x11vnc -R stop
to regain connection
Furthermore I would like to setup Offsite backup for photos
To save space and not requiring to purchase extra space I would like to compress and encrypt it for privacy reasons
So I would need to monitor my Nextcloud autouploads aswell as a manual folder on the NAS part
I have two Users on Nextcloud
I would need a script that monitors the three folders for new uploads with a 24h cycle
Copy the new files to an temp folder where they get compressed and encrypted and after that upload it to a Dropbox or Google Drive account and than delete the compressed files after upload so only the original file is on the harddrive
I found tow guides that could be useful one is for the notify and the other is on image compression
I’m a somewhat between beginner and intermediate Linux user, so a Step-by-Step would be welcomed but I’m still somewhat capable with no experience in scripting