commit message from python script

This commit is contained in:
2024-02-12 16:28:31 +01:00
parent 42168a2a3f
commit 04763146fa

View File

@@ -1,6 +1,6 @@
#! /home/jonnybravo/Projekte/Python_Skripte/rclone/bin/python3.11 #! /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): def rclone_folders_copy(folder_to_sync=list, dest_folder = str):
check_list = [] check_list = []
@@ -27,10 +27,15 @@ def rclone_folders_copy(folder_to_sync=list, dest_folder = str):
if __name__ == "__main__": if __name__ == "__main__":
folder_to_sync_manuell = ['ssh_keys', 'frei', 'Doku'] folder_to_sync_manuell = ['ssh_keys', 'frei', 'Doku','Joplin', 'Hack']
if rclone_folders_copy(folder_to_sync=folder_to_sync_manuell, dest_folder="/home/jonnybravo/.nextcloud") is True: while True:
print("Sync erfolgreich") if rclone_folders_copy(folder_to_sync=folder_to_sync_manuell, dest_folder="/home/jonnybravo/.nextcloud") is True:
else: print("Sync erfolgreich")
print("Sync nicht erfolgreich !!") time.sleep(60)
else:
print("Sync nicht erfolgreich !!")
break