Skip to content

DenisVS/mega_backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mega Backup

shell script for backup on MEGA https://mega.io

  • MEGATOOLS_PATH - megatools execute file MEGATOOLS_PATH='/cygdrive/c/megatools/megatools.exe'

  • MEGA_CREDENTIALS_PATH - file with credentials (typical megatools mega.ini) MEGA_CREDENTIALS_PATH='/cygdrive/c/megatools/mega.ini'

  • MEGA_BACKUP_PATHS - CSV file with backup dirs and settings MEGA_BACKUP_PATHS='/cygdrive/c/megatools/mega_server_backup_paths.ini'

mega_server_backup_paths.ini:

c:/Users/Fred/Documents|/Root/Fred/Docs|1
c:/Shares|/Root/Backup2/Shares|0
c:/Users/Admin/Documents/Projects|/Root/Backup2/Projects|2

#/from/here/all/new/subdirs|/to/here/as/new/subdirs|0
#/all/from/this/dir|/into/dated/dir/under/this/one|1
#/all/files/from/this/dir|/into/this/dir|2

1-st column is local path 2-nd column is mega path (Should be started as /Root) 3-rd column is mode of backup

  • 0 - copy missing subdirs
  • 1 - copy all dirs to subdir with date like name
  • 3 - copy all files from this dir to OUTPUT dir

mega.ini:

# Uncomment following lines (remove #) and set your password/username
[Login]
Username = MyEmail
Password = MyMegaPassword

About

Backup data to megaupload

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages