This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# proxmox uses (now) min and non min version for pve and pbs | |
PATTERN=nag_screen_removed | |
FILENAME=/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js | |
if grep -q ${PATTERN} "${FILENAME}"; then | |
echo doing nothing: ${FILENAME} | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh [email protected] "sudo dd if=/dev/mmcblk0 bs=1M | gzip - " | dd of=~/Desktop/backup_2017-11-14.gz |