Language Selection

English French German Italian Portuguese Spanish

bash shell script: copy only files modifed after specified date

Filed under
HowTos

I’ve mentioned a few times lately that I’m working on my backup plan for GNU/Linux. I started by looking at great free software tools like Samba’s rsync and GNU Tar, and I don’t think I need to look much further than them. There is also GNU Cpio, which I haven’t really investigated yet.

I may have more to say later about my rsync and tar adventures, but for today here’s something I came up with to emulate a feature of a tool I had in Windows that I couldn’t find how to do with existing tools in GNU. The xcopy DOS command lets you recursively copy files modified after a certain date by using the /D:date option.

your questions:

Why would you want to do this? Well, one reason would be for offsite backups. I regularly store backup discs in a bank safe deposit box. I then occasionally want to copy changed files from the last dropoff, encrypt them, and send to my gmail account or carry around on a USB thumb drive. I’d like to have a lightweight way to do this that didn’t rely on a system of incremental backups.

Doesn’t tar take care of this with the --after-date option? Yes, but...

More Here.

More in Tux Machines

GCC vs. LLVM Clang vs. AOCC Compilers On AMD Threadripper

Given recent improvements to AMD Zen (znver1) with LLVM, the new AMD AOCC 1.2 compiler release, and GCC 8.1 having premiered just weeks ago, here is a fresh look at the performance of six different C/C++ code compilers when testing the performance of the resulting binaries on an AMD Threadripper 1950X system. Read more

LibreOffice 6.1 Beta Arrives Next Week for Second Bug Hunting Session on May 28

Now that the first bug hunting session, which took place last month on April 27 for the alpha milestone, was a success leading to 91 bugs (8 of them marked as critical and 4 already fixed) being reported by those who attended the event, it's time for a second bug hunting session at the end of May to discover and squash more of those pesky bugs and issues that may block the release of LibreOffice 6.1. Read more

Canonical Releases Major Kernel Updates for Ubuntu 17.10, 16.04 LTS & 14.04 LTS

After releasing a kernel update for the Ubuntu 18.04 LTS (Bionic Beaver) operating system series to mitigate the recently disclosed Spectre Variant 4 (CVE-2018-3639) security vulnerability, Canonical now released new kernel versions for Ubuntu 17.10 (Artful Aardvark), Ubuntu 16.04 LTS (Xenial Xerus), and Ubuntu 14.04 LTS (Trusty Tahr) operating system series and their official derivatives. Read more

Open source image recognition with Luminoth

Computer vision is a way to use artificial intelligence to automate image recognition—that is, to use computers to identify what's in a photograph, video, or another image type. The latest version of Luminoth (v. 0.1), an open source computer vision toolkit built in Python and using Tensorflow and Sonnet, offers several improvements over its predecessor. Read more