Skip to content

Instantly share code, notes, and snippets.

@tobsowo
tobsowo / PVE-host-backup.md
Created March 22, 2023 08:49 — forked from mrpeardotnet/PVE-host-backup.md
Proxmox PVE Host Config Backup Script

Proxmox PVE Host Config Backup Script

This script can be used to backup essential configuration files from the Proxmox Virtual Enivronment (PVE) host.

The script will create backups using tar with specified backup prefix and date and time stamp in the file name. Script will also delete backups that are older then number of days specified.

Create backup script file

To create backup script that will be executed every day we can create backup script in /etc/cron.daily/ folder. We need to make it writeable by root (creator) only, but readable and executable by everyone:

touch /etc/cron.daily/pvehost-backup
@tobsowo
tobsowo / CreatePDFRenameAndEmail.gs
Created October 14, 2016 15:37 — forked from andrewroberts/CreatePDFRenameAndEmail.gs
A Google Apps Script that uses the values from a Google Sheet to construct a PDF from a GDoc template. It allows you to specify a name for the file and email it to someone. This is a demo sheet: https://docs.google.com/spreadsheets/d/1jLpPtmUS8__PceJx9z5iSSaLSfENojWK7hfsH6uHa9Y/edit#gid=0. It is a development of the CreatePDF script (https://gis…
/*
PDF Create - with rename and email
==================================
When you click "Create PDF>Create PDF" this script uses the data from
the active row to construct a PDF in your GDrive. The value in the
"File Name" column is used to name the file and - if there is a
value - it is emailed to the recipient in the "Email" column.
<h1>Two way binding:</h1>
<div>{{message}}</div>
<label for="new-message">Type: message</label>
<input type="text" [(ngModel)]="message" id="new-message" />
<h1>Lists:</h1>
<ul>
<li *ngFor="#item of nameList">
{{item.name}}
</li>