Add simple scripts to execute rclone to sync
This commit is contained in:
parent
0a5c2ca8ff
commit
0386c33962
|
@ -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
|
||||
|
|
17
home/packages/custom/nextcloud-sync/from-local.nix
Normal file
17
home/packages/custom/nextcloud-sync/from-local.nix
Normal 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
|
||||
'';
|
||||
}
|
17
home/packages/custom/nextcloud-sync/from-remote.nix
Normal file
17
home/packages/custom/nextcloud-sync/from-remote.nix
Normal 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/
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue