Welcome!

The kernel problem with recent updates has been solved. Find the solution here

Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

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
User avatar
bin
Forum Novice
Forum  Novice
Posts: 24
Joined: Sun Aug 30, 2009 1:53 am

Thunar action - single file backup

#1

Post by bin » Mon Jan 14, 2019 2:25 am

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
Forum Guide
Forum Guide
Posts: 1069
Joined: Mon Jun 27, 2016 7:32 pm

Re: Thunar action - single file backup

#2

Post by Mauser » 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.
I am command line illiterate. :confused:

User avatar
bin
Forum Novice
Forum  Novice
Posts: 24
Joined: Sun Aug 30, 2009 1:53 am

Re: Thunar action - single file backup

#3

Post by bin » Mon Jan 14, 2019 3:20 am

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
Forum Novice
Forum  Novice
Posts: 83
Joined: Fri Dec 02, 2011 6:17 pm

Re: Thunar action - single file backup

#4

Post by gimcrack » Mon Jan 14, 2019 4:30 am

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: 2736
Joined: Fri Dec 12, 2008 10:31 am

Re: Thunar action - single file backup

#5

Post by Richard » Mon Jan 14, 2019 7:58 am

Quickest way in Thunar:
Highlight the file or dir, press & hold Ctrl then type "c v"
Edit the name if desired.
LT: MX18.3: Thinkpad T430: DualCore, Intel i5-3320M, Ivy Bridge; 8GB RAM; 4.19.0-5-amd64; 119GB SSD 840PRO, Intel Graphics-Audio-Network
NB: MX18.1, antiX17.4: AsusTek EeePC 1005HA: Intel DualCore Atom N270, 1GB RAM, 4.19.0-1-686, 150GB HDD

User avatar
bin
Forum Novice
Forum  Novice
Posts: 24
Joined: Sun Aug 30, 2009 1:53 am

Re: Thunar action - single file backup

#6

Post by bin » Mon Jan 14, 2019 9:56 am

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

Post Reply

Return to “Tips&Tricks”