commit message from python script
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#! /home/jonnybravo/Projekte/Python_Skripte/rclone/bin/python3.11
|
||||
|
||||
import os
|
||||
import os, time
|
||||
|
||||
def rclone_folders_copy(folder_to_sync=list, dest_folder = str):
|
||||
check_list = []
|
||||
@@ -27,10 +27,15 @@ def rclone_folders_copy(folder_to_sync=list, dest_folder = str):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
folder_to_sync_manuell = ['ssh_keys', 'frei', 'Doku']
|
||||
if rclone_folders_copy(folder_to_sync=folder_to_sync_manuell, dest_folder="/home/jonnybravo/.nextcloud") is True:
|
||||
print("Sync erfolgreich")
|
||||
else:
|
||||
print("Sync nicht erfolgreich !!")
|
||||
folder_to_sync_manuell = ['ssh_keys', 'frei', 'Doku','Joplin', 'Hack']
|
||||
while True:
|
||||
if rclone_folders_copy(folder_to_sync=folder_to_sync_manuell, dest_folder="/home/jonnybravo/.nextcloud") is True:
|
||||
print("Sync erfolgreich")
|
||||
time.sleep(60)
|
||||
|
||||
|
||||
else:
|
||||
print("Sync nicht erfolgreich !!")
|
||||
break
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user