Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Text editor that makes numbered backups?

  1. #1
    Join Date
    Dec 2007
    Beans
    12,521

    Text editor that makes numbered backups?

    I'm using Lubuntu 12.10 which comes with Leafpad. If I edit a text file, no backup is created and there doesn't seem to be any obvious way to create backups.

    I'd like to use a text editor that can create backups preferably retaining multiple backups. In other words, if I edit temp.txt once and save it, the latest version would temp.txt and the backup would be something like temp.bak.1. The next edit would result in temp.bak.2 and so on.

    (I'm not interested in an editor than brings in KDE dependencies.)
    Last edited by vasa1; June 27th, 2013 at 03:48 AM. Reason: marking as Solved

  2. #2
    Join Date
    Oct 2007
    Beans
    58

    Re: Text editor that makes numbered backups?

    You could always use nano and then use the backup modifier as Alt+B Nano is in standard install of Lubuntu 12.10

  3. #3
    Join Date
    Dec 2007
    Beans
    12,521

    Re: Text editor that makes numbered backups?

    Quote Originally Posted by mechdave View Post
    You could always use nano and then use the backup modifier as Alt+B Nano is in standard install of Lubuntu 12.10
    It looks like nano just keeps one version. I would like to have more.
    Anyway, I asked here: Is it possible to have more than just one backup when editing text files?
    The answer I got will keep me busy for quite a while

  4. #4
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: Text editor that makes numbered backups?

    Double-post deleted.
    Last edited by schragge; April 1st, 2013 at 04:39 PM.

  5. #5
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: Text editor that makes numbered backups?

    jEdit is an UltraEdit clone and as such has versioned backups, but a proper VCS like git is inherently better.
    Last edited by schragge; April 1st, 2013 at 04:40 PM.

  6. #6
    Join Date
    Oct 2005
    Location
    Lab, Slovakia
    Beans
    10,791

    Re: Text editor that makes numbered backups?

    Howdy,

    What you want is a simple versioning system. Coders will tell you to install git or subversion, but that is total overkill for text files. I use RCS to version control the files in the /etc directory:

    http://www.aeronetworks.ca/howtos/rcs-howto.html

    Many text editors allow you to integrate versioning commands into the context menus.

  7. #7
    Join Date
    Jun 2008
    Location
    Tennessee
    Beans
    3,421

    Re: Text editor that makes numbered backups?

    Emacs can be configured to do this.
    http://www.gnu.org/software/emacs/ma...d-Backups.html

  8. #8
    Join Date
    Feb 2008
    Beans
    5,078
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Text editor that makes numbered backups?

    If the text file is in a Dropbox folder, Dropbox itself will keep multiple versions.

  9. #9
    Join Date
    Mar 2013
    Beans
    30

    Re: Text editor that makes numbered backups?


  10. #10
    Join Date
    Oct 2008
    Location
    Ottawa, Canada
    Beans
    813
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: Text editor that makes numbered backups?

    Quote Originally Posted by gordintoronto View Post
    If the text file is in a Dropbox folder, Dropbox itself will keep multiple versions.
    +1 for Dropbox. It will keep all versions for 30 days, transparently. I always store current projects in my Dropbox. That way, they are available from anywhere and are protected from unwanted deletion or modification. It's like a digital safety net.

    I wish there was a simple Ubuntu tool that would provide real-time, transparent version control for files or directories, without a full blown VCS or cloud server. There is NILFS but it's a bit overkill, a simple daemon should do the trick.

    Cheers!
    husband@wife$ make sandwich
    Permission denied
    husband@wife$ sudo make sandwich

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •