Linux Format

Back up your configurat­ion files

-

Backups are essential if and when you decide to edit the configurat­ion files. It might not seem like a big deal if you change it and then check that it works with some applicatio­ns. But in the case of the compton.conf file, what if you made some changes to it – only to discover three months down the line (practicall­y an eternity) that your changes either slowed the performanc­e of an OpenGL window applicatio­n or caused screen tearing with another applicatio­n? Or what if it wasn’t the changes you made to

compton.conf, but the changes you made to your window managers .conf file instead?

You can see how failure to have backups of configurat­ion files can turn into a long ordeal of troublesho­oting and trial and error as you attempt to revert them back to their previous working state. Rather than go through all that hassle, why not spend a few minutes quickly generating a backup of the configurat­ion files.

Using compton as an example to make a backup of a configurat­ion file, all you need to do is enter the following command in a terminal: sudo cp /etc/xdg/compton.conf{,.bak}

The cp command copies the file in /etc/xdg/ called compton.conf. The {,.bak} gives it the same filename but with the .bak file extension. You can do as many backups as necessary and a simple ls -l in the /etc/xdg/ directory would show you when they were created or modified.

Newspapers in English

Newspapers from Australia