2023-09-18 03:56:58 +01:00
|
|
|
{...}: {
|
|
|
|
services.rclone-sync = {
|
2022-11-15 14:52:49 +00:00
|
|
|
enable = true;
|
|
|
|
user = "storage";
|
2023-09-18 03:56:58 +01:00
|
|
|
syncJobs = map (syncJob:
|
|
|
|
syncJob
|
|
|
|
// {
|
|
|
|
serviceConfig = {
|
|
|
|
after = ["auto-secrets.service"];
|
|
|
|
wants = ["auto-secrets.service"];
|
|
|
|
};
|
|
|
|
timerConfig = {
|
2023-09-28 14:04:35 +01:00
|
|
|
OnStartupSec = "120";
|
2023-09-18 03:56:58 +01:00
|
|
|
OnCalendar = "4h";
|
|
|
|
};
|
|
|
|
extraArgs = [
|
|
|
|
"--fast-list"
|
2023-09-28 14:04:35 +01:00
|
|
|
"--check-first"
|
|
|
|
"--delete-before"
|
|
|
|
"--b2-upload-concurrency=4"
|
|
|
|
"--transfers=4"
|
|
|
|
"--bwlimit 80M"
|
2023-09-18 03:56:58 +01:00
|
|
|
];
|
|
|
|
}) [
|
2022-11-15 14:52:49 +00:00
|
|
|
# My B2
|
|
|
|
{
|
|
|
|
source = "StorageBox:Backups";
|
|
|
|
dest = "B2-Chaos-Backups:";
|
2023-03-19 11:44:27 +00:00
|
|
|
id = "chaos_b2_backups";
|
2022-11-15 14:52:49 +00:00
|
|
|
}
|
|
|
|
{
|
|
|
|
source = "StorageBox:Photos";
|
|
|
|
dest = "B2-Chaos-Photos:";
|
2023-03-19 11:44:27 +00:00
|
|
|
id = "chaos_b2_photos";
|
2022-11-15 14:52:49 +00:00
|
|
|
}
|
|
|
|
{
|
|
|
|
source = "StorageBox:Music";
|
|
|
|
dest = "B2-Chaos-Music:";
|
2023-03-19 11:44:27 +00:00
|
|
|
id = "chaos_b2_music";
|
2022-11-15 14:52:49 +00:00
|
|
|
}
|
2023-07-09 20:46:08 +01:00
|
|
|
{
|
|
|
|
source = "StorageBox:Personal";
|
|
|
|
dest = "B2-Chaos-Personal:";
|
|
|
|
id = "chaos_b2_personal";
|
|
|
|
}
|
2023-07-29 20:35:27 +01:00
|
|
|
{
|
|
|
|
source = "StorageBox:Public";
|
|
|
|
dest = "B2-Chaos-Public:";
|
|
|
|
id = "chaos_b2_public";
|
|
|
|
}
|
2023-07-31 17:16:29 +01:00
|
|
|
{
|
|
|
|
source = "StorageBox:Media";
|
|
|
|
dest = "B2-Chaos-Media:";
|
|
|
|
id = "chaos_b2_media";
|
|
|
|
}
|
2022-11-15 14:52:49 +00:00
|
|
|
# Pheonix System's B2
|
|
|
|
{
|
|
|
|
source = "StorageBox:Backups";
|
|
|
|
dest = "B2-Phoenix-Cryptidz-Storage:Backups";
|
2023-03-19 11:44:27 +00:00
|
|
|
id = "phoenix_b2_backups";
|
2022-11-15 14:52:49 +00:00
|
|
|
}
|
|
|
|
{
|
|
|
|
source = "StorageBox:Photos";
|
|
|
|
dest = "B2-Phoenix-Cryptidz-Storage:Photos";
|
2023-03-19 11:44:27 +00:00
|
|
|
id = "phoenix_b2_photos";
|
2022-11-15 14:52:49 +00:00
|
|
|
}
|
|
|
|
{
|
|
|
|
source = "StorageBox:Music";
|
|
|
|
dest = "B2-Phoenix-Cryptidz-Storage:Music";
|
2023-03-19 11:44:27 +00:00
|
|
|
id = "phoenix_b2_music";
|
2022-11-15 14:52:49 +00:00
|
|
|
}
|
2023-07-09 20:46:08 +01:00
|
|
|
{
|
|
|
|
source = "StorageBox:Personal";
|
|
|
|
dest = "B2-Phoenix-Cryptidz-Storage:Personal";
|
|
|
|
id = "phoenix_b2_personal";
|
|
|
|
}
|
2023-07-29 20:35:27 +01:00
|
|
|
{
|
|
|
|
source = "StorageBox:Public";
|
|
|
|
dest = "B2-Phoenix-Cryptidz-Storage:Public";
|
|
|
|
id = "phoenix_b2_public";
|
|
|
|
}
|
2023-07-31 17:16:29 +01:00
|
|
|
{
|
|
|
|
source = "StorageBox:Media";
|
|
|
|
dest = "B2-Phoenix-Cryptidz-Storage:Media";
|
|
|
|
id = "phoenix_b2_media";
|
|
|
|
}
|
2022-11-15 14:52:49 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|