/ Published in: SmallTalk
Banyan Backup
Expand |
Embed | Plain Text
myBackup sourceDirectory class. myBackup where: [ : path : eachFileDirectoryEntry | eachFileDirectoryEntry name first ~= $_ ]; execute. myBackup prepareToMakeTargetLikeSource. "directory: '/download/' , self rootTestDirName ;" ftpRootTestDir := ServerDirectory new type: #ftp ; server: '192.168.1.2' ; directory: '/download/' ; keepAlive: true ; user: 'pw'. ftpRootTestDir inspect. sourceDirectory := (FileDirectory on: 'c:\tmpBackup'). targetDirectory := (FileDirectory on: ftpRootTestDir). ftpRootTestDir class. sourceDirectory class. ftpRootTestDir := ServerDirectory new type: #ftp ; server: '192.168.1.1' ; directory: '/www/tmp' ; keepAlive: true ; user: 'user'; password: 'pw'; yourself. myBackup := MaBanyanBackup source: (FileDirectory on: 'c:\tmpBackup') target: (ServerDirectory new type: #ftp ; server: '192.168.1.1' ; directory: '/www/tmp' ; keepAlive: true ; user: 'user' ; yourself). myBackup := MaBanyanBackup source: (FileDirectory on: 'C:\Documents and Settings\user\Mis documentos') target: (FileDirectory on: 'C:\Documents and Settings\user\Mis documentos\BACKUP'). myBackup viewProposedChanges. myBackup prepareToMakeTargetLikeSource. myBackup execute. x := MaBanyanBackup organization. x explore. x := MaBanyanBackup methodDict. x explore. (FileDirectory on: 'C:\Archivos de Programa') maOpenSizeTreeForEntriesLargerThan: 10000000. "only show lines in the report larger than 10MB"
You need to login to post a comment.
