Creating Backups (Linux)
Contents
Create a Shared Folder
Ubuntu
-
Install Samba if not already:
sudo apt install samba && sudo systemctl enable smbd -
Add your user to samba, replacing
$USERwith your Linux username.sudo smbpasswd -a $USERYou will be prompted for your linux password. Then, you must create a new SMB password for the user with permission to write to your new backup share. Keep the password somewhere safe, such as Vaultwarden.
-
Identify or create a folder to store your server backups.
-
Right click the folder and click "Properties".
-
Click "Local Network Share".
-
Select "Share this folder" and give the folder a Share name. Remember the name, you will need it later. Then click "Create Share".
-
If your installation of Ubuntu is running a firewall by default or due to your own custom configuration, enter this command to allow connections to Samba. If it generates an error, you can safely ignore it:
sudo ufw allow Samba
Mint
-
Install Samba if not already:
sudo apt install samba && sudo systemctl enable smbd -
Add your user to samba, replacing
$USERwith your Linux username.sudo usermod -a -G sambashare $USER sudo smbpasswd -a $USERYou will be prompted for your linux password. Then, you must create a new SMB password for the user with permission to write to your new backup share. Keep the password somewhere safe, such as Vaultwarden.
-
Identify or create a folder to store your server backups.
-
Right click the folder and click "Sharing Options".
-
Select "Share this folder" and give the folder a Share name (maximum 12 characters). Remember the name, you will need it later. Click "Create Share".
-
If your installation of Mint is running a firewall by default or due to your own custom configuration, enter this command to allow connections to Samba. If it generates an error, you can safely ignore it:
sudo ufw allow Samba
Other Linux
-
Install Samba if it is not already installed.
-
Arch:
sudo pacman -S samba -
Debian and Debian-based:
sudo apt install samba -
CentOS/Redhat
sudo yum install samba -
Fedora
sudo dnf install samba
-
-
Identify or create a folder to store your server backups. Make a note of the directory path. For example:
mkdir -p /home/$USER/start9-backupreplacing
$USERwith your Linux username and "start9-backup" with whatever you want the folder to be named. -
Configure Samba by adding the following to the end of your
/etc/samba/smb.conffile:[backup-share] path = "/home/$USER/start9-backup" create mask = 0600 directory mask = 0700 read only = no guest ok = noWhere:
[backup-share]can be replaced with whatever you want (must remain inside brackets). This is yourShare Name. Remember the name, you will need it later.pathis the directory path to the share folder from above.
-
Open a terminal and enter the following command, replacing
$USERwith your Linux username:sudo smbpasswd -a $USERThis creates a password for the Local Network Share. Keep it somewhere safe, such as Vaultwarden.
-
If your Linux system has a firewall enabled by default or due to custom configuration, you may need to allow connections to Samba. The command varies depending on the firewall in use:
-
For systems using UFW (commonly found on Debian-based distros):
sudo ufw allow Samba -
For systems using firewalld (common on RHEL-based distros):
sudo firewall-cmd --permanent --add-service=samba sudo firewall-cmd --reload
-
Create a Backup
-
In StartOS, go to
System > Create Backup. -
Click "Open New".
-
Complete the form:
-
Hostname: The name of your Linux machine on the LAN.
-
Path - The "Share Name" (name of the share in your samba config), not the full directory path. (e.g. "backup-share" in the example).
-
Username - Your Linux username on the remote machine that you used to create the shared directory.
-
Password - The password you set above using smbpasswd
-
-
Click "Connect".