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
- Using [installer script](../scripts/PopOS/software/rclone/install.sh)
- Sync NextCloud
```bash
rclone config # add remote
systemctl --user daemon-reload
systemctl --user enable rclone@nextcloud:Nextcloud
systemctl --user start rclone@nextcloud:Nextcloud
```
- Using [script](../scripts/PopOS/cloud-sync/nextcloud.sh)
- Install `oh-my-posh`
```bash
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%/*}"
popOSRoot="$dir/../scripts/PopOS"
softwareRoot="$popOSRoot/software"
cloudRoot="$popOSRoot/cloud-sync"
# Set Hostname
sudo hostnamectl set-hostname ManuSurface
@ -38,3 +39,6 @@ sudo apt install steam
# Install gnome extensions
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