Joining PDF files with Ghostview

If you ever have to join multiple PDF files into one unique document, you can use Ghostview. Running the following command, it will merge a collection of PDF files into a new one.

gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=output.pdf -dBATCH file1.pdf file2.pdf file3.pdf … fileN.pdf
view raw joinPDF.sh This Gist brought to you by GitHub.
Posted in Code | Tagged , | Comments Off

Incremental backups with tar

When you have to backup a large amount of data, simple backups are a waste of time and storage space. In this situation, the most suitable option is to backup data incrementally. Although there are different methods, today I’ll explain how I use tar to keep my files safe.

With tar, an incremental backup consists of multiple files. The first one is a full dump of the data. This is a simple backup of the files as you would normally do. Simultaneously, the first time you perform an incremental backup it will be created a snapshot file. A snapshot file contains information related to the state of the data in a specific moment. With this information, later you can detect which files have changed and which ones have been added or deleted.

Continue reading

Posted in Code | Tagged , , , | Comments Off