You are not logged in.
There is an interesting new backup software out there which "provides functionality similar to the System Restore feature in Windows and the Time Machine tool in Mac OS. TimeShift protects your system by taking incremental snapshots of the file system at regular intervals. These snapshots can be restored later to bring your system to the exact state it was in at the time when the snapshot was taken." [1]
[1] http://teejeetech.blogspot.nl/2013/10/i … shift.html
The steps to get it running are described here [2].
How could this be translated into a working PKGBUILD?
Offline
It can be and I got a basic one working, but prebuilt binaries from other systems suck. The source is available on launchpad, but no source tarballs that I can see, so we'll have to use bzr to pull a specific rev, which also sucks for a stable package.
Edit, I don't have time right now to get the source build going, so here's the working package for the pre-built binaries
# Contributor: Doug Newgard <scimmia22 at outlook dot com>
pkgname=timeshift-bin
pkgver=1.1
pkgrel=1
pkgdesc="A system restore utility for Linux"
arch=('i686' 'x86_64')
url="http://teejeetech.blogspot.nl/p/timeshift.html"
license=('GPL')
depends=('gtk3' 'rsync' 'libgee06' 'libsoup' 'json-glib')
optdepends=('gksu: run timeshift from a menu')
options=('!emptydirs')
if [[ "$CARCH" == "i686" ]]; then
_arch='i386'
sha256sums=('f3de6fc6f3019a6db5044eeb654aa9d12d7030a2ff71957f0f340e43c69c4b85')
elif [[ "$CARCH" == "x86_64" ]]; then
_arch='amd64'
sha256sums=('4332bde4c4db5de5e4f8f543cb38c93f455fe254864259d5a9d499d6df48438c')
fi
source=("http://dl.dropbox.com/u/67740416/linux/timeshift-latest-$_arch.run")
package() {
cd "$srcdir"
sh ./timeshift-latest-$_arch.run --target "$pkgdir" --noexec
rm "$pkgdir/install.sh"
}
Last edited by Scimmia (2013-10-20 19:57:41)
Online
Thanks for your effort!
I added the package to the AUR and will ask the developer if he can provide source tarballs.
Offline
The developer released source tarballs.
Source tarballs can be downloaded from the launchpad page:
https://launchpad.net/~teejee2008/+arch … /+packages
timeshift_1.1.1-0~32~ubuntu13.04.1.tar.gz
How can the PKGBUILD changed to use the source?
Offline
How can the PKGBUILD changed to use the source?
Add a build function which correctly builds the source files into binaries and then modify the package function to correctly install the resulting files.
Edit: You'll also need to edit the source array to either draw from bzr or using the source tarballs.
All the best,
-HG
Last edited by HalosGhost (2013-10-23 07:11:44)
Offline
You do it like this.
PKGBUILD:
# Contributor: Doug Newgard <scimmia22 at outlook dot com>
pkgname=timeshift
pkgver=1.1.1
pkgrel=1
pkgdesc="A system restore utility for Linux"
arch=('i686' 'x86_64')
url="http://teejeetech.blogspot.nl/p/timeshift.html"
license=('GPL')
depends=('gtk3' 'rsync' 'libgee06' 'libsoup' 'json-glib' 'desktop-file-utils')
optdepends=('gksu: run timeshift from a menu')
makedepends=('vala')
install=$pkgname.install
options=('!emptydirs')
source=("https://launchpad.net/~teejee2008/+archive/ppa/+files/timeshift_$pkgver-0~32~ubuntu13.04.1.tar.gz")
sha256sums=('49d5104934ac19f2f1f2e20f3b4d5f92117fa0839a66a08e18400361f83588d2')
build() {
cd "$srcdir/recipe-{debupstream}-0~{revno}"
make
}
package() {
cd "$srcdir/recipe-{debupstream}-0~{revno}"
make DESTDIR="$pkgdir" install
}
timeshift.install:
post_install() {
update-desktop-database -q
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}
Last edited by Scimmia (2013-10-27 07:11:17)
Online
@Scimmia
Thanks!
I added this one to the AUR as well [1]. I will leave it up to the other users which package to favour. Then I will eventually drop one over the other.
Offline
I'm not sure if this is an appropriate place, but I don't see a reason of making a duplicate post.
Is anyone planning on converting TimeShift to AUR4, I really liked it. I would do it myself but I feel I am not competent enough
Offline