Fork me on GitHub

This is an old revision of the document!


lcd manual

About

The 'lcd' command allows you to move forward and backwards though time in a similar way to using the built-in cd directory to change your current working directory. Essentially, the 'lcd' command moved your directory into a more recent or less recent backup snapshot but keeps your relative position within the snapshot if possible.

When to Use

If you are searching for a file then you can move forwards or backwards though time with this command to find the file you wish to locate in the backup set. This tool could also provide the basis of a more advanced tools which would scan forward or backwards for changes to a particular file or directory.

Usage Examples

Once you are within a LBackup backup snapshot then you can issue the commands below to move forward and backwards though time within this backup set.

Usage examples : 
  Move to a more recent backup:  . /usr/local/sbin/lcd future
  Move to an older backup:       . /usr/local/sbin/lcd past

If you are using the bash shell then you can use the alias function as specified in the help :

alias lcd="source /usr/local/sbin/lcd"

Then you can simply use the command as listed below :

Usage examples (with alias) : 
  Move to a more recent backup:  lcd future
  Move to an older backup:       lcd past

If you are having problems with this command then please ask for help on the LBackup mailing list.



Helpful Links