diff --git a/backup-rotator b/BackupRotator.py similarity index 98% rename from backup-rotator rename to BackupRotator.py index a96af48..992ae33 100755 --- a/backup-rotator +++ b/BackupRotator.py @@ -246,13 +246,3 @@ class BackupRotator: else: self.log("Purging directory:", dir_path) shutil.rmtree(dir_path) - - -def main(): - - rotator = BackupRotator() - rotator.run() - - -if __name__ == "__main__": - main() diff --git a/main.py b/main.py new file mode 100644 index 0000000..4304b9f --- /dev/null +++ b/main.py @@ -0,0 +1,14 @@ + + +from BackupRotator import BackupRotator + + +# +def main(): + + rotator = BackupRotator() + rotator.run() + + +if __name__ == "__main__": + main()