Add simple scripts to execute rclone to sync

This commit is contained in:
Daniel Siepmann 2022-10-11 20:49:21 +02:00
parent 0a5c2ca8ff
commit 0386c33962
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
3 changed files with 36 additions and 0 deletions

View file

@ -17,6 +17,8 @@ with pkgs; [
(callPackage ./packages/custom/update-ubuntu-system { })
(callPackage ./packages/custom/push-etckeeper { })
(callPackage ./packages/custom/backup { })
(callPackage ./packages/custom/nextcloud-sync/from-local.nix { })
(callPackage ./packages/custom/nextcloud-sync/from-remote.nix { })
(callPackage ./packages/custom/build-phpactor { })
i3blocks
st

View file

@ -0,0 +1,17 @@
{
writeShellApplication,
rclone
}:
writeShellApplication {
name = "custom-nextcloud-sync-from-local";
runtimeInputs = [
rclone
];
text = ''
rclone sync -v --progress ~/Documents/Nextcloud Nextcloud-Private:Documents
rclone sync -v --progress ~/Documents/NextcloudCodappix/Documents/ Nextcloud-Codappix:Documents
'';
}

View file

@ -0,0 +1,17 @@
{
writeShellApplication,
rclone
}:
writeShellApplication {
name = "custom-nextcloud-sync-from-remote";
runtimeInputs = [
rclone
];
text = ''
rclone sync -v --progress Nextcloud-Private:Documents ~/Documents/Nextcloud
rclone sync -v --progress Nextcloud-Codappix:Documents ~/Documents/NextcloudCodappix/Documents/
'';
}