Add script for cloud sync

This commit is contained in:
Manuel Thalmann 2022-11-12 14:31:03 +01:00
parent 0a8cc10ec9
commit fcfbd05553
4 changed files with 20 additions and 6 deletions

View file

@ -27,12 +27,7 @@ The steps described here allow the creation of a linux system on a Surface Book
- Install rclone - Install rclone
- Using [installer script](../scripts/PopOS/software/rclone/install.sh) - Using [installer script](../scripts/PopOS/software/rclone/install.sh)
- Sync NextCloud - Sync NextCloud
```bash - Using [script](../scripts/PopOS/cloud-sync/nextcloud.sh)
rclone config # add remote
systemctl --user daemon-reload
systemctl --user enable rclone@nextcloud:Nextcloud
systemctl --user start rclone@nextcloud:Nextcloud
```
- Install `oh-my-posh` - Install `oh-my-posh`
```bash ```bash
sudo wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -O /usr/local/bin/oh-my-posh sudo wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -O /usr/local/bin/oh-my-posh

View file

@ -2,6 +2,7 @@
dir="${BASH_SOURCE%/*}" dir="${BASH_SOURCE%/*}"
popOSRoot="$dir/../scripts/PopOS" popOSRoot="$dir/../scripts/PopOS"
softwareRoot="$popOSRoot/software" softwareRoot="$popOSRoot/software"
cloudRoot="$popOSRoot/cloud-sync"
# Set Hostname # Set Hostname
sudo hostnamectl set-hostname ManuSurface sudo hostnamectl set-hostname ManuSurface
@ -38,3 +39,6 @@ sudo apt install steam
# Install gnome extensions # Install gnome extensions
source "$softwareRoot/gnome-extensions.sh" source "$softwareRoot/gnome-extensions.sh"
# Sync clouds
source "$cloudRoot/nextcloud.sh"

View file

@ -0,0 +1,13 @@
#!/bin/bash
provider=$1
dirname=$2
serviceName=rclone@$provider:$dirname
echo "Please create a remote named $1"
rclone config
mkdir ~/$dirName
systemctl --user enable $serviceName
systemctl --user daemon-reload
systemctl --user start $serviceName

View file

@ -0,0 +1,2 @@
#!/bin/bash
source "${BASH_SOURCE%/*}/base.sh" nextcloud Nextcloud