Fork me on GitHub

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
lcd_manual [2010/06/23 07:31]
henri
lcd_manual [2010/06/23 07:35]
henri
Line 42: Line 42:
  
 ===== Scripting with LCD ===== ===== Scripting with LCD =====
-It is possible to create scripts which call the LCD command and search though ​time for specific files, changes in files or for directly ​listings such as the renaming of a file. In order to use the lcd command from within a script you must be running LBackup 0.9.8r4 or later. In addition, you will need to pass the '​-s'​ flag to the lcd command when invoked within a script. Below is a simple ​example script ​and the output : +It is possible to create scripts which call the '​lcd' ​command and search though ​within your backup set(s) ​for specific files, changes in files or for directly ​listing changes (eg. renaming of a file, deletion of a file, etc.)  
 +\\  
 +In order to use the 'lcd' ​command from within a script you must be running LBackup 0.9.8r4-alpha9 ​or later. In addition, you will need to pass the '​-s'​ flag to the lcd command when invoked within a script. Below there is a basic example script ​listed along with the scripts ​output :  
 + 
 +\\ 
  
 ==== Sample Script ==== ==== Sample Script ====
Line 62: Line 66:
 pwd pwd
  
-echo "​moving ​three to an older backup"​+echo "​moving ​back to an older backup"​
 source /​usr/​local/​sbin/​lcd -s past source /​usr/​local/​sbin/​lcd -s past
 pwd pwd