Page 1 of 1

Thunar action - single file backup

Posted: Mon Jan 14, 2019 2:25 am
by bin
This is a very useful action when you realise that you really would benefit from a backup of a file you're about to select and edit in some way.

It allows you to just right click>create a backup copy in just a second

Code: Select all

<action>
	<icon>backup-icon</icon>
	<name>Create backup copy</name>
	<unique-id>1462344169644611-5</unique-id>
	<command>cp --backup=t %f %f.backup</command>
	<description>Create backup copy of a file</description>
	<patterns>*</patterns>
	<audio-files/>
	<image-files/>
	<other-files/>
	<text-files/>
	<video-files/>
</action>
The icon I used is a renamed version of the Edit Undo icon

Re: Thunar action - single file backup

Posted: Mon Jan 14, 2019 3:02 am
by Mauser
Looks like the hard way. I just copy and paste into my external book drive using the mouse.

Re: Thunar action - single file backup

Posted: Mon Jan 14, 2019 3:20 am
by bin
My apologies.

Longhand version using GUI

Thunar>Edit>Configure Custom Actions
Add New
Name>Create backup copy
Description>Create backup copy of a file
Command>cp --backup=t %f %f.backup
Icon - you choose

Appearance Conditions - all except Directories

Click OK

Then right click on any file for which you need a quick backup

Re: Thunar action - single file backup

Posted: Mon Jan 14, 2019 4:30 am
by gimcrack
Mauser wrote: Mon Jan 14, 2019 3:02 am Looks like the hard way. I just copy and paste into my external book drive using the mouse.
or Drag N Drop. I do either, copy and paste or drag n drop to my externals. That's how I been backing up all my important data since 1995. I just never trust to do it any other way. Especially those third-party applications. This method haven't fail me for the past 24 years. I do everything on my PC the most easiest and the most convenient way as possible.

Re: Thunar action - single file backup

Posted: Mon Jan 14, 2019 7:58 am
by Richard
Quickest way in Thunar:
Highlight the file or dir, press & hold Ctrl then type "c v"
Edit the name if desired.

Re: Thunar action - single file backup

Posted: Mon Jan 14, 2019 9:56 am
by bin
Don't knock it till you've tried it!