Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
my "keep" script
#1
file keep.py is a command and function that "keeps" a specified file by making a time stamped copy.  it supports being configured in ~/.config/keep/config where i have mine configured to keep the copies it makes in a subdirectory named "keep".  it used the date of the file itself for the time stamp.  when keeping the same file again, it detects that the copy is already existing and does a compare and indicates the result in the one line message.   when it makes this copy it says where it copied to or where it already exists and if it is equal or not.

i use this in my edit command script to keep the file i am editing each time i edit it, as well as keep the editor backup.  so i will have older versions all the time (space is cheap).  keep handles emacs backups (original name + '~') by using the original name.  that way i have a 2nd chance to keep files.  i also have it do that both before and after i edit the file.  but keep is only keeping one file per edit change.

my keep subdirectory is just a little over 700 megabytes in size.  not all of that is edited; somtime i just so a keep on files i want to keep a copy of.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
my "keep" script - by Skaperen - Nov-28-2017, 06:13 AM
RE: my "keep" script - by buran - Nov-28-2017, 07:07 AM
RE: my "keep" script - by Skaperen - Nov-28-2017, 09:31 AM
RE: my "keep" script - by metulburr - Nov-28-2017, 01:42 PM
RE: my "keep" script - by Skaperen - Nov-29-2017, 01:07 AM
RE: my "keep" script - by metulburr - Nov-29-2017, 04:22 AM
RE: my "keep" script - by Skaperen - Nov-29-2017, 06:20 AM
RE: my "keep" script - by Larz60+ - Nov-29-2017, 07:37 AM
RE: my "keep" script - by Skaperen - Nov-29-2017, 08:22 AM
RE: my "keep" script - by Larz60+ - Nov-29-2017, 12:19 PM
RE: my "keep" script - by Skaperen - Nov-30-2017, 02:20 AM
RE: my "keep" script - by wavic - Nov-30-2017, 03:13 AM
RE: my "keep" script - by Larz60+ - Nov-30-2017, 04:13 AM
RE: my "keep" script - by metulburr - Nov-30-2017, 02:27 PM
RE: my "keep" script - by snippsat - Nov-30-2017, 03:13 PM
RE: my "keep" script - by metulburr - Nov-30-2017, 05:34 PM
RE: my "keep" script - by Skaperen - Dec-01-2017, 03:46 AM
RE: my "keep" script - by buran - Dec-01-2017, 05:15 AM
RE: my "keep" script - by metulburr - Dec-01-2017, 01:02 PM
RE: my "keep" script - by Skaperen - Dec-02-2017, 03:54 AM
RE: my "keep" script - by wavic - Dec-02-2017, 09:07 AM
RE: my "keep" script - by Skaperen - Dec-03-2017, 01:10 AM
RE: my "keep" script - by wavic - Dec-03-2017, 05:06 AM
RE: my "keep" script - by Skaperen - Dec-03-2017, 05:37 AM
RE: my "keep" script - by wavic - Dec-03-2017, 09:15 AM
RE: my "keep" script - by Skaperen - Dec-06-2017, 03:04 AM
RE: my "keep" script - by buran - Dec-06-2017, 07:48 AM
RE: my "keep" script - by ezdev - Dec-16-2017, 09:07 PM
RE: my "keep" script - by Larz60+ - Dec-16-2017, 10:52 PM
RE: my "keep" script - by wavic - Dec-16-2017, 11:06 PM
RE: my "keep" script - by ezdev - Dec-16-2017, 11:29 PM
RE: my "keep" script - by Skaperen - Dec-17-2017, 04:32 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020