Changeset 1150
- Timestamp:
- May 22, 2013, 12:54:32 PM (11 years ago)
- Location:
- baculafs/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
baculafs/trunk/README.txt
r1148 r1150 1 ba culafs1 bareos-fuse 2 2 3 3 a python-fuse based virtual filesystem for recovery … … 8 8 9 9 * What is working? 10 - Ba cula repositorycan be mounted and accessed10 - Bareos (or Bacula) restore filesets can be mounted and accessed 11 11 12 12 * What is not working? … … 19 19 * Prerequisites: 20 20 - bconsole must be installed and configured 21 - python-fuse must be installed 21 22 22 23 * Usage: 23 ./ba culafs.py /mnt24 ./bareos-fuse.py /mnt 24 25 ls -la /mnt 25 26 ls -la /mnt/usr … … 31 32 ./baculafs.py -f -s -d /mnt 32 33 33 Also take a look at the log files /tmp/ba culafs.log and /tmp/bconsole.out34 Also take a look at the log files /tmp/bareos-fuse.log and /tmp/bareos-fuse-bconsole.log -
baculafs/trunk/bareos-fuse.py
r1149 r1150 19 19 ################ 20 20 21 BA CULA_FS_VERSION = "$Rev$"22 23 LOG_FILENAME = '/tmp/ba culafs.log'24 LOG_BCONSOLE_DUMP = '/tmp/b console.out'25 26 27 #BA CULA_CMD = 'strace -f -o /tmp/bconsole.strace /usr/sbin/bconsole -n'28 BA CULA_CMD = '/usr/sbin/bconsole -n'21 BAREOS_FUSE_VERSION = "$Rev$" 22 23 LOG_FILENAME = '/tmp/bareos-fuse.log' 24 LOG_BCONSOLE_DUMP = '/tmp/bareos-fuse-bconsole.log' 25 26 27 #BAREOS_CMD = 'strace -f -o /tmp/bconsole.strace /usr/sbin/bconsole -n' 28 BAREOS_CMD = '/usr/sbin/bconsole -n' 29 29 30 30 BCONSOLE_CMD_PROMPT='\*' … … 51 51 self.last_items_dict = {} 52 52 53 self.bconsole = pexpect.spawn( BA CULA_CMD, logfile=file(LOG_BCONSOLE_DUMP, 'w'), timeout=timeout )53 self.bconsole = pexpect.spawn( BAREOS_CMD, logfile=file(LOG_BCONSOLE_DUMP, 'w'), timeout=timeout ) 54 54 self.bconsole.setecho( False ) 55 55 self.bconsole.expect( BCONSOLE_CMD_PROMPT ) … … 205 205 ############### 206 206 207 class Ba culaFS(fuse.Fuse):207 class BareosFuse(fuse.Fuse): 208 208 209 209 TYPE_NONE = 0 … … 346 346 347 347 usage = """ 348 Ba cula filesystem: displays files from Baculabackups as a (userspace) filesystem.349 Internaly, it uses Baculas bconsole.348 Bareos Fuse filesystem: displays files from Bareos backups as a (userspace) filesystem. 349 Internaly, it uses the Bareos bconsole. 350 350 351 351 """ + fuse.Fuse.fusage 352 352 353 353 354 fs = Ba culaFS(355 version="%prog: " + BA CULA_FS_VERSION,354 fs = BareosFuse( 355 version="%prog: " + BAREOS_FUSE_VERSION, 356 356 usage=usage, 357 357 # required to let "-s" set single-threaded execution
Note:
See TracChangeset
for help on using the changeset viewer.