graham8 / osmc-backup Goto Github PK
View Code? Open in Web Editor NEWBackup scripts for copying osmc installations to and from system partitions
Backup scripts for copying osmc installations to and from system partitions
I had mounted a samba folder with this command
sudo mount -t cifs -o user=pi //192.168.0.60/SouSou /media/SouSou
I can access the ntfs drive and modify all the elements, but when i try to backup I got this:
Fri Aug 2 15:58:49 CEST 2019 Backup version 0.1.10 Going to back up to /media/SouSou/sauvegarde/osmcsalon/2019-08-02 (unless I can't find it). looking for mounted media media for /media/SouSou/sauvegarde/osmcsalon not mounted in /media or /mnt
The Readme says CIFS is supported (but no extended attributes) but the comment in script says its not plus it is not specified in the array. So just wanting to confirm if it works with cifs or not?
Hi
Lines 326 and 327 in osmc-backup
refer to "$BACKUPDIRNOW/$source"
.
There is no defined variable called BACKUPDIRNOW
which means it backs up /
to /system
causing a loop on subsequent backups (backing up /system
to /system
) and rapidly filling the disk (or card).
I think this means to say "$BACKUPDIR/$NOW/$source"
.
William
my mounted backup drive does not pass the test for it being mounted.
in osmc-backup I added 2 echo lines after line 126: DRIVE=${BASH_REMATCH[$i]}
echo "Drive = " $DRIVE
echo "findmnt = " $(findmnt -l | grep ^"$DRIVE ")
and changed the backup drive to /media/user/backuposmc
testing the mounted drive:
ls /media/user/backuposmc
...reports back a whole list of files...
sudo ./osmc-backup
reports back the following:
di 27 feb 2024 22:31:27 CET Backup version 0.1.12a
Going to back up to /media/user/backuposmc/2024-02-27 (unless I can't find it).
looking for mounted media
Drive = /media/user/backuposmc
findmnt = /media/user/backuposmc /dev/loop30p1 vfat ro,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro
Drive = /media/user
findmnt =
media for /media/user/backuposmc not mounted in /media or /mnt
Hi,
I am trying to use this script to backup my osmc SD card to a mounted USB stick, but I am always getting this error:
sudo osmc-backup "USB DISK"
gio 14 mar 2019, 17.58.08, CET Backup version 0.1.9
Going to back up to USB DISK/2019-03-14 (unless I can't find it).
media for USB DISK not mounted in /media or /mnt
the disk is mounted, as findmnt says:
/media/USB DISK /dev/sdb1 vfat rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0111
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.