Konsolenschnipsel: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 18: | Zeile 18: | ||
==simple-mtpfs== | ==simple-mtpfs== | ||
Super um über MTP zu mounten. | Super um über MTP zu mounten. | ||
+ | |||
+ | https://github.com/phatina/simple-mtpfs/ | ||
<syntaxhighlight lang="bash" line> | <syntaxhighlight lang="bash" line> | ||
− | |||
#! /usr/bin/env bash | #! /usr/bin/env bash | ||
− | |||
#Script for simple-mtpfs | #Script for simple-mtpfs | ||
− | |||
PS3=$'\nSelect an option.: ' | PS3=$'\nSelect an option.: ' | ||
− | |||
#mount directory | #mount directory | ||
dir="/media/myphone" | dir="/media/myphone" | ||
− | |||
while :; do | while :; do | ||
clear | clear |
Version vom 20. Februar 2021, 15:32 Uhr
Inhaltsverzeichnis
rsync
Benutze ich am liebsten um sicher zu stellen, dass bei einem Übertragen eines Verzeichnisses nichts schiefgeht und wenn doch bekommt man es wenigstens mit.
rsync -avph --stat Quelle Ziel
diff
Um nach einem Übertragen von Daten auf Nummer Sicher zu gehen.
diff -r Ordner1/ Ordner2/
adb
Neben einem MTP-Backup immer noch meine Lieblingsmethode um meine Tablets/Smartphones zu sichern.
adb devices
adb backup --all
simple-mtpfs
Super um über MTP zu mounten.
https://github.com/phatina/simple-mtpfs/
1 #! /usr/bin/env bash
2 #Script for simple-mtpfs
3 PS3=$'\nSelect an option.: '
4 #mount directory
5 dir="/media/myphone"
6 while :; do
7 clear
8 options=('Quit' 'List Devices' 'Mount' 'Umount')
9 select opt in "${options[@]}"; do
10 case "$opt" in
11 Quit) clear; exit
12 ;;
13
14 'List Devices') simple-mtpfs -l
15 ;;
16
17 Mount) simple-mtpfs "$dir"; echo "Mounted to "$dir""
18 ;;
19
20 Umount) fusermount -u "$dir"; echo "Unmounted"
21 ;;
22 esac
23 done
24 done
Quelle: [1]