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

Linux Kernel News

budgie-remix 16.04.2 Comes Equipped with the HWE Kernel from Ubuntu 16.04.2 LTS

The great folks from the Ubuntu Budgie (formerly budgie-remix) GNU/Linux distribution had the pleasure of announcing the general availability of budgie-remix 16.04.2. What's budgie-remix 16.04.2, you may wonder? Well, as Ubuntu Budgie did not yet have a stable release, and because many people are still using the distro on their PCs with its previous name (budgie-remix), the developers updated it to be based on the recently released Ubuntu 16.04.2 LTS (Xenial Xerus) operating system. Being based on Ubuntu 16.04.2 LTS, which inherits the newer Linux 4.8 kernel and an updated graphics stack based on Mesa 12.0 3D Graphics Library from Ubuntu 16.10 (Yakkety Yak), budgie-remix 16.04.2 comes equipped with its HWE kernel and graphics stack, as well as the latest Budgie 10.2.9 desktop environment. Read more

Today in Techrights

Linux Mint 18.2 to Come with a Revamped Bluetooth Panel, Updated Xplayer and Xed

Clement Lefebvre, the founder and lead developer of the popular Linux Mint operating system, published the project's monthly newsletter for the month of February 2017 to keep the community up-to-date with the latest developments. Read more