dCore Import Debian Packages to Mountable SCE extensions > dCore X86

"version" command download location

<< < (3/5) > >>

netnomad:
hi friends,

keeping backups seems to be a good thing for me... configurations and even core system files...
would you mind to rename the existing files for keeping them, instead of simply overwriting them?
i really appreciate the backdate.sh that offers me a history of my config-backups :-)
f.e. the last ten versions numbered for 01 to 10... or with a timestamp-extension... or do you prefer version?

thank you for your interest and help.

Jason W:
I haven't started on it.  Timestamp would mean unlimited possible different files.  Below is the lines to create the dCore-*.gz timestamps:


--- Code: ---#!/bin/sh

CORE="$1"
REPO=`cat rootfs/usr/share/doc/tc/repo.txt`
RELEASE=`echo dCore-"$REPO":$(date "+%Y.%m.%d.%H.%M")`
echo "$RELEASE" > rootfs/usr/share/doc/tc/release.txt
echo "$RELEASE" > dCore-"$REPO".latest
cd rootfs

find | cpio -o -H newc | gzip -2 > ../"$CORE"
cd ..
md5sum "$CORE" > "$CORE".md5.txt

cd -


--- End code ---

nitram:
Have a working version script and config file prototype that allows downloading to any directory, mount partition as needed, unlimited datestamp backup. Hope to spend time polishing next couple days then submit for review. Only have one dCore system for testing, so may take a bit to work out bugs after release, thanks.

netnomad:
hi friends,

backups with timestamp-extensions is a good solution,
but the alternative with the version-extension could be even better...
f.e. dupes are avoided, evaluation is easier.
is there a way to read the version out of the plain dCore-*.gz-file?
this would offer advantages for rollbacks and for recognizing unloaded plain dCore-*.gz-files...

thank you for your considerations.

Jason W:
Oh, is the date stamp going to come from http://tinycorelinux.net/dCore/x86/release_candidates/dCore-trusty/dCore-trusty.latest?  If so, the script can check to see if that file has already been downloaded and no need to again.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version