MCPcopy Create free account

hub / github.com/Dabz/mongo-backup / functions

Functions56 in github.com/Dabz/mongo-backup

↓ 29 callersMethodCleanupBackupEnv
cleanup the environment variable in case of failover
src/github.com/Dabz/mongobackup/env.go:123
↓ 8 callersMethodShow
(percent float32)
src/github.com/Dabz/utils/progressbar.go:80
↓ 6 callersMethodCreate
create a new homelogfile and write it to the disk
src/github.com/Dabz/mongobackup/homefile.go:79
↓ 6 callersMethodEnd
()
src/github.com/Dabz/utils/progressbar.go:136
↓ 6 callersMethodFlush
flush the homelogfile to disk
src/github.com/Dabz/mongobackup/homefile.go:112
↓ 4 callersMethodGetDirSize
Return the total size of the directory in byte
src/github.com/Dabz/mongobackup/copy.go:65
↓ 3 callersFunctionPrintHelp
()
src/github.com/Dabz/mongobackup/options.go:142
↓ 3 callersMethodRemoveEntry
remove an entry and flush it to disk
src/github.com/Dabz/mongobackup/homefile.go:95
↓ 3 callersMethodgetOplogFirstEntries
get the first oplog entry
src/github.com/Dabz/mongobackup/mongo.go:114
↓ 2 callersMethodAddNewEntry
add a new entry and flush it to disk
src/github.com/Dabz/mongobackup/homefile.go:88
↓ 2 callersMethodBackupOplogToDir
dump the cursor to a directory if compress option is specified, use lz4 while dumping return the error if any, the number of byte restored, the first
src/github.com/Dabz/mongobackup/oplog.go:32
↓ 2 callersMethodFindEntries
return entries according to a criteria (string0 TODO should we use a lexer/parser?
src/github.com/Dabz/mongobackup/homefile.go:280
↓ 2 callersMethodGetBackupEntry
return a backup associated to this speicifc id
src/github.com/Dabz/mongobackup/homefile.go:127
↓ 2 callersMethodGetIncEntriesBetween
get all incremental BackupEntry between two specific entry used to realize point in time recovery and recreate the oplog
src/github.com/Dabz/mongobackup/homefile.go:199
↓ 2 callersMethodGetLastFullBackup
return the last full backup realized before a specific entry
src/github.com/Dabz/mongobackup/homefile.go:138
↓ 2 callersMethodRepeat
(str string, count int)
src/github.com/Dabz/utils/progressbar.go:62
↓ 2 callersMethodgetOplogEntries
get oplog entries that are greater than ts
src/github.com/Dabz/mongobackup/mongo.go:122
↓ 2 callersMethodmongoFsyncUnLock
unlock mongodb instance db.fsyncUnlock
src/github.com/Dabz/mongobackup/mongo.go:66
↓ 2 callersMethodmongoIsSecondary
check if a mongodb instance is a secondary
src/github.com/Dabz/mongobackup/mongo.go:77
↓ 1 callersMethodCheckIncrementalConsistency
check that that incremental restoration of this backup will be consistent
src/github.com/Dabz/mongobackup/homefile.go:181
↓ 1 callersMethodClear
clear whole line and move cursor to leftmost of line
src/github.com/Dabz/utils/progressbar.go:58
↓ 1 callersMethodCopyDir
Copy a directory into another and compress all files if required
src/github.com/Dabz/mongobackup/copy.go:86
↓ 1 callersMethodCopyFile
Copy a file to another destination if the compress flag is present, compress the file while copying using lz4
src/github.com/Dabz/mongobackup/copy.go:25
↓ 1 callersMethodDeleteEntries
Remove & delete a range of backups
src/github.com/Dabz/mongobackup/delete.go:63
↓ 1 callersMethodDeleteEntry
Remove & delete a specific backup
src/github.com/Dabz/mongobackup/delete.go:43
↓ 1 callersMethodDumpOplogsToDir
dump the oplog between the entries to the requested output directory
src/github.com/Dabz/mongobackup/oplog.go:116
↓ 1 callersMethodFindEntriesFromCriteria
Find entries according to a criteria
src/github.com/Dabz/mongobackup/homefile.go:217
↓ 1 callersMethodFindEntriesFromKind
return all entries from this kind
src/github.com/Dabz/mongobackup/homefile.go:266
↓ 1 callersMethodGetLastEntryAfter
get the last entry before the requested date used to determine which snapshots to recover for pit
src/github.com/Dabz/mongobackup/homefile.go:164
↓ 1 callersMethodGetWinSize
see: http://www.delorie.com/djgpp/doc/libc/libc_495.html
src/github.com/Dabz/utils/progressbar.go:34
↓ 1 callersMethodList
List all backups, if kinf is specified, list only backup with this kind
src/github.com/Dabz/mongobackup/list.go:19
↓ 1 callersMethodPerformBackup
perform an incremental or full backup check the documentation of the performFullBackup, perforIncrementalBackup for more information
src/github.com/Dabz/mongobackup/backup.go:23
↓ 1 callersMethodPerformDeletion
Perform deletion according to the command line options
src/github.com/Dabz/mongobackup/delete.go:21
↓ 1 callersMethodPerformRestore
perform the restore & dump the oplog if required oplog is not automatically replayed (futur impprovment?) to restore incremental backup or point in ti
src/github.com/Dabz/mongobackup/restore.go:25
↓ 1 callersMethodRead
Read & Populate the homefile structure from a file
src/github.com/Dabz/mongobackup/homefile.go:56
↓ 1 callersMethodRestoreCopyDir
restore & uncompress a backup to a specific location
src/github.com/Dabz/mongobackup/copy.go:149
↓ 1 callersMethodRestoreCopyFile
Copy & Uncompress a specific file if required
src/github.com/Dabz/mongobackup/copy.go:186
↓ 1 callersMethodSetupBackupEnvironment
initialize the environment object
src/github.com/Dabz/mongobackup/env.go:47
↓ 1 callersMethodcheckBackupDirectory
find or create the backup directory
src/github.com/Dabz/mongobackup/env.go:133
↓ 1 callersMethodcheckHomeFile
find of create the home file
src/github.com/Dabz/mongobackup/env.go:152
↓ 1 callersMethodcheckIfDirExist
(dir string)
src/github.com/Dabz/mongobackup/copy.go:228
↓ 1 callersMethodconnectMongo
create mongoclient object
src/github.com/Dabz/mongobackup/mongo.go:22
↓ 1 callersMethodensureSecondary
ensure that the targeted instance is a secondary try to perform a rs.stepDown() if it is a primary node
src/github.com/Dabz/mongobackup/env.go:104
↓ 1 callersMethodfetchDBPath
fetch the dbPath of the mongo instance using the db.adminCommand({getCmdLineOpts: 1}) command
src/github.com/Dabz/mongobackup/mongo.go:43
↓ 1 callersMethodgetOplogCount
get the oplog number of entry
src/github.com/Dabz/mongobackup/mongo.go:129
↓ 1 callersMethodgetOplogLastEntries
get the last oplog entry
src/github.com/Dabz/mongobackup/mongo.go:106
↓ 1 callersMethodmongoFsyncLock
lock mongodb instance db.fsyncLock()
src/github.com/Dabz/mongobackup/mongo.go:56
↓ 1 callersMethodmongoStepDown
perform an rs.stepDown() on the connected instance
src/github.com/Dabz/mongobackup/mongo.go:93
↓ 1 callersMethodperforIncrementalBackup
perform an incremental backup oplog greater than the last known oplog will be dump if a common point in the oplog can not be found, a full backup has
src/github.com/Dabz/mongobackup/backup.go:110
↓ 1 callersMethodperformFullBackup
perform a full backup if compress option is passed, will compress using lz4 by default will lock the db with fsyncLock will perform a rs.stepDown() if
src/github.com/Dabz/mongobackup/backup.go:39
↓ 1 callersMethodperformFullRestore
perform the restore & dump of the oplog
src/github.com/Dabz/mongobackup/restore.go:77
↓ 1 callersMethodrecCopyDir
Recursive copy directory function
src/github.com/Dabz/mongobackup/copy.go:104
↓ 1 callersFunctionvalidateOptions
validate the option to see if there is any incoherence (TODO)
src/github.com/Dabz/mongobackup/options.go:137
MethodGetNextBackup
return the next entry after the one provided
src/github.com/Dabz/mongobackup/homefile.go:149
FunctionParseOptions
parse the command line and create the Options struct
src/github.com/Dabz/mongobackup/options.go:54
Functionmain
()
src/github.com/Dabz/mongobackup/mongobackup/main.go:18