-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Dear all, Can you please help me on this? I want to backup my bash_history monthly before it gets cleared. How do I make the script?
#!/bin/bash cd cp .bash_history .bash_history.old
Then run as a cron job (kcron is good for those who want a GUI for cron).
Of course this will result in the previous .bash_history.old file being deleted, but I assume you don't mind that. If you want records going back more than a month, use a date variable.
Sir Robin
-- "I declare this sentence a performative!"
Robin Turner IDMYO Bilkent Univeritesi Ankara 06533 Turkey
www.bilkent.edu.tr/~robin
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
