<repo_name>Xenon-Game-Dev/101---backup<file_sep>/README.md
# 101---backup<file_sep>/Cloud.py
import howdoi
import dropbox
# access key <KEY>

class backupData :
    def __init__ (self, accessKey):
        self.accessKey = accessKey

    def backup(self, fileFrom, fileTo):
        
        DropBox1 = dropbox.Dropbox(self.accessKey)

        with open(fileFrom, 'rb') as file:
            DropBox1.files_upload(file.read(), fileTo)

def initiateBackup(fileInput, fileDestination):
    accessKey = "<KEY>"
    backUpData = backupData(accessKey)
    fileFrom = fileInput
    fileTo = fileDestination
    backUpData.backup(fileFrom=fileFrom, fileTo=fileTo)

initiateBackup('example.txt', '/Backups/exampleBACKUP.txt')    
print("FILE-SUCCESSFULLY-BACKED-UP")








