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

Leftovers: Ubuntu

  • Canonical, Snappy and the marketing value of collaboration
    Canonical implies it is collaborating with nearly every major Linux distro for its Snappy project. It is not. And what could have been a marketing win for it is now a loss.
  • How to install MongoDB community edition on Ubuntu Linux
    MongoDB is a NoSQL database that avoids the traditional structure of relational databases in favor of document-oriented JSON-like objects. What this translates to is the integration between application and data is faster and easier. If that's not enough, consider this: MongoDB is one the databases preferred by big data and large enterprise companies, including Adobe, Craigslist, eBay, FIFA, Foursquare, and LinkedIn.
  • No WhatsApp, but fixes set to come for Ubuntu Phone
    Users of the Ubuntu Phone will have to get used to the fact that popular Android apps like WhatsApp are unlikely to be made available for the platform, at least not in in the short term. Facebook owns WhatsApp and the communications app now has more than a billion users.
  • Ubuntu Developers Discuss Again About Dropping Support For 32-bit x86
    Ubuntu developers are once again pondering the possibility of dropping support for i386 (32-bit x86) as installation media for their Linux distribution. The matter of dropping Ubuntu i386 ISOs has been brought up many times the past few years, but ultimately it's kept getting pushed back for users still running Ubuntu Linux on old hardware and other reasons. Dropping Ubuntu for i386 keeps getting brought up namely for the installer media rather than the i386 package archive itself.

Sabayon 16.07 Ships with Linux Kernel 4.6.3, Introduces the First LXQt Flavor

Today, June 28, 2016, the developers of the Gentoo-based Sabayon Linux computer operating system have had the great pleasure of announcing the general availability of new respin ISO images for the month of July 2016. Right on the schedule, Sabayon 16.07 Live ISO images are now available for download, switching the OS to the latest Linux 4.6.3 kernel from the deprecated Linux 4.5 branch that shipped with the May ISO respins of the GNU/Linux distribution, Sabayon 16.05. Read more

Android Apps Turn Chromebooks Into Macbook Killers

  • Android Apps Turn Chromebooks Into Macbook Killers
    When Chromebooks launched in the summer of 2011, they seemed destined to fail, much like the underpowered, internet-dependent netbooks that came before them. But in the five years since, Chromebooks have defied expectations, becoming the most used device in US classrooms and even outselling Macs for the first time this year. Still, people complain about their inability to run useful software, but that’s all about to change.
  • Android apps could turn Chromebooks into MacBook killers

today's leftovers

  • Permabit Debuts Only Complete Data Reduction for the Linux Storage Stack
    Permabit Technology Corporation, the leader in data reduction technology, today announced the latest release of its Virtual Data Optimizer (VDO) software, VDO 6. The newest release of VDO delivers the company's patented deduplication, HIOPS Compression™ and thin provisioning in a commercial software package for Linux, expanding availability beyond the OEM marketplace to include the leading Professional Services organizations that are enabling today's modern Hybrid Cloud data centers.
  • My KIWI/OBS talk from oSC'16
    Last Friday, at openSUSE Conference 2016, I was giving a talk together with Christian Schneemann about KIWI and OBS (the events.opensuse.org software is not able to manage "two speakers for one talk", this is why I am not listed in the schedule).
  • AppliedMicro Announces the Availability of its Mudan Storage Platform at Red Hat Summit 2016
  • AsteroidOS smartwatch OS wants you, developers
    AsteroidOS is a new open source operating system specifically designed to serve software application development on smartwatches. The project is now gaining some traction and has been reported to now be looking for developer and community contribution engagement.