Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

os: ubuntu 12.04 LTS,
kernel: 3.8.0-35-generic kernel,

when i right click on "text file/s", i would like to have a custom menu, to run a bash, to make a backup copy of text file/s i'm right clicking on.

suppose i right click on the following three files:

/home/user_name/folder/file_1
/home/user_name/folder/file_2.c
/home/user_name/folder/file_3.sh

suppose time stamp is 2013/12/31 23:59:59

i would like to have the following:

/home/user_name/folder/20131231_235959/file_1.bak
/home/user_name/folder/20131231_235959/file_2.c.bak
/home/user_name/folder/20131231_235959/file_3.sh.bak

how do i make this little toy? any help?

share|improve this question
    
Have a look at this –  Alex R. Feb 12 at 8:34
    
@Alex R. hi, how do i make menu appearing only on certain type of files, like for example only plain text files or only pdf files or whatever. ? –  user247117 Feb 12 at 8:55

1 Answer 1

You could easily achieve this using Thunar and its Edit > Configure custom actions. See official documentation on how to do this.

This said, I would advise against such setups. More efficient is to use an automatic backup and synchronization utility such as SpiderOak, which automatically backups the selected file and keeps a history of all historic changes. See Comparison of backup tools.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.