Thunar action - single file backup

Here is where you can post tips and tricks to share with other users of MX. Do not ask for help in this Forum.
Post Reply
Message
Author
User avatar
bin
Posts: 68
Joined: Sun Aug 30, 2009 1:53 am

Thunar action - single file backup

#1 Post 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

User avatar
Mauser
Posts: 1361
Joined: Mon Jun 27, 2016 7:32 pm

Re: Thunar action - single file backup

#2 Post by Mauser »

Looks like the hard way. I just copy and paste into my external book drive using the mouse.
I am command line illiterate. :confused: I copy & paste to the terminal. Liars, Wiseguys, Trolls, and those without manners will be added to my ignore list. :mad:

User avatar
bin
Posts: 68
Joined: Sun Aug 30, 2009 1:53 am

Re: Thunar action - single file backup

#3 Post 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

User avatar
gimcrack
Posts: 251
Joined: Fri Dec 02, 2011 6:17 pm

Re: Thunar action - single file backup

#4 Post 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.

User avatar
Richard
Posts: 1577
Joined: Fri Dec 12, 2008 10:31 am

Re: Thunar action - single file backup

#5 Post by Richard »

Quickest way in Thunar:
Highlight the file or dir, press & hold Ctrl then type "c v"
Edit the name if desired.
Thinkpad T430 & Dell Latitude E7450, both with MX-21.3.1
kernal 5.10.0-26-amd64 x86_64; Xfce-4.18.0; 8 GB RAM
Intel Core i5-3380M, Graphics, Audio, Video; & SSDs.

User avatar
bin
Posts: 68
Joined: Sun Aug 30, 2009 1:53 am

Re: Thunar action - single file backup

#6 Post by bin »

Don't knock it till you've tried it!

Post Reply

Return to “Tips & Tricks by users”