SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Any way for variable expansion or such in FileSet resources?
Author Message
Post Any way for variable expansion or such in FileSet resources? 
Hello,

I have a several virtual machines running on a single physical machine.
I run the FD on the physical machine and to back up the VMs I run a pre
and post client script. The pre takes snapshots of the VM logical
volumes and mounts them on the physical machine. The post unmounts the
snapshots and removes the snapshots. Works good.

The problem is I need a FileSet for each machine even though the fileset
really isn't the same. The reason is that when I mount the VM FS it is
mounted as /backup/machinename/fsname. What I would like to do is have
a single FileSet with the client name populated at the time of the job
running. I don't believe with Python I can do this, infact I don't
think there is any way to do that.

Thoughts?
I guess I can look through the code and see if I can make the change
myself. Anyone want to give pointers on where to look?

Thanks, Jeff

My current FileSet looks like:
FileSet {
Name = "machine1"
Include {
Options {
signature = MD5
Compression=GZIP
strippath=1
}
File = /backup/machine1/partitons.txt
File = /backup/machine1/partiton_table.txt
File = /backup/machine1/partition_table_howto.txt
File = /backup/machine1/root
File = /backup/machine1/customers
File = /backup/machine1/home
}
Exclude {
File = /backup/machine1/root/dev
File = /backup/machine1/root/proc
File = /backup/machine1/root/tmp
}
}

FileSet {
Name = "machine2"
Include {
Options {
signature = MD5
Compression=GZIP
strippath=1
}
File = /backup/machine2/partitons.txt
File = /backup/machine2/partiton_table.txt
File = /backup/machine2/partition_table_howto.txt
File = /backup/machine2/root
File = /backup/machine2/customers
File = /backup/machine2/home
}
Exclude {
File = /backup/machine2/root/dev
File = /backup/machine2/root/proc
File = /backup/machine2/root/tmp
}
}

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB