Skip to content

Instantly share code, notes, and snippets.

View ProBackup-nl's full-sized avatar
🏠
Working from home

C. Jacobs ProBackup-nl

🏠
Working from home
View GitHub Profile
@ProBackup-nl
ProBackup-nl / _log-write-stats.sh
Last active February 17, 2021 20:55
Log all disk and partition write statistics on one line in file for Arch Linux
#!/bin/sh
# # tail /var/log/disk-write-stats.log
# 2021-02-15 13:39:30 Written: mmcblk1p1 [512 B] mmcblk1p2 [150 MB] sda [1.61 TB]
# 2021-02-16 04:00:22 Written: mmcblk1p1 [512 B] mmcblk1p2 [163 MB] sda [1.96 TB]
# 2021-02-17 04:00:00 Written: mmcblk1p1 [512 B] mmcblk1p2 [179 MB] sda [2.52 TB]
#
# installation:
# # nano /usr/bin/log-write-stats.sh; chmod +x /usr/bin/log-write-stats.sh
# # nano /etc/systemd/system/log-write-stats.service
# # /etc/systemd/system/log-write-stats.timer files
@ProBackup-nl
ProBackup-nl / crashplan-server.service
Last active January 26, 2024 14:59
CrashPlanPROe 3.x systemd unit for Arch Linux
# Paste this in: /usr/lib/systemd/system/crashplan-server.service
# Then: # systemctl enable --now crashplan-server
[Unit]
Description=CrashPlanPROe 3.x server
After=network.target
[Service]
Type=forking
PIDFile=/opt/proserver/proserver.pid
@ProBackup-nl
ProBackup-nl / restore_database.sh
Last active March 23, 2021 09:48
CrashPlanPROe 3.x for Arch Linux mod
#!/bin/bash
# nano /opt/proserver/bin/restore_database.sh;chmod 700 /opt/proserver/bin/restore_database.sh
#################################################################
# Basic setup
#################################################################
importLog=$PWD/import.log
# Find .install.vars and set variables based on their contents
INSTALL_VARS_DIR="$(dirname `ls -l $0 | awk '{ print $NF }'`)/.."
@ProBackup-nl
ProBackup-nl / README.md
Created March 23, 2021 09:56 — forked from gMagicScott/README.md
Install CrashPlan for Linux without the hassle of all the interactive prompts. This uses all the defaults, except opening the GUI interface at the end.

CrashPlan Simple Install

CrashPlan is a great backup service allowing local, remote, and premium hosted backups. They even support Windows, Mac, and Linux.

While I can't speak to the install experience for Windows or Mac, on Linux, it's horrible.

It's an interactive install that doesn't take any flags to accept defaults. As a Ubuntu user, there is a new version every 6 months and to make the upgrade process easier, I bash script the installation of all my core programs so I can reformat and be back up an running with ease.

This bash script will download a recent version, untar it, and install it with all the defaults.

## Paste this into: /usr/lib/systemd/system/crashplan.service
## Then:
# /usr/local/crashplan/bin/CrashPlanEngine stop
# systemctl enable --now crashplan
## Check whether it is running:
# systemctl status crashplan
[Unit]
Description=CrashPlan backup engine
After=network.target