Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Batch Backup Script

Empfohlene Antworten

hi leute,

ich bin zur zeit bei mir in der firma schwer am entwickeln, un da meinem kollegen letzthin der pc abgeraucht ist hab ich mir ma gedacht das ich meine scripts auch mal sichern sollte.

Nun wollte ich anfragen ob vielleicht jemand von euch eine Art von Backup Script in Batch o. ä. hat?

da ich mich mit batch noch gar nicht befasst habe ( bin auch FiSi) dachte ich,frag halt ma nach.

Am liebsten wäre es mir das ich die Batchdatei am anfang öffnen und da dann meine Ziel und Quell Ordner (Datei(en))angeben soll (von wo nach wo kopiert werden soll). selbständig sollte das script dann am besten am ziel ordner einen neuen Ordner anlegen mit datei namen vom aktuellen Datum und dann darin einfach die scripte mit copy -paste dann reinhaut. dieses script wollte ich dann grad als task einrichten und *tadaaa* backup fertig!

Also falls jemand mit so etwas dienen kann (oder es vielleicht auch schnell tippen würde für mich :)) oder einen besseren vorschlag hat immer her damit.

OS: Win

Gruß

kills

ich hab mal ein bissel probiert.

das kam raus:

backup.bat:

@ECHO ON

SET MAKE_MODE=UNIX

SET PATH=C:\Programme\cygwin\bin;%PATH%

bash c:/usr/bin/backup.sh

mv backup*.tar.gz "C:\Backup\Thumbnail\"

backup.sh:

#!/bin/sh

DAT=

for i in `cat c:/usr/bin/Dateien.txt` ; do

DAT=`echo $DAT $i`

done

tar cvzf backup`date +%d`.`date +%m`.`date +%Y`_`date +%H`.`date +%M`.tar.gz -C ///pc/freigabe/bilder $DAT;

Dateien.txt:

pics

*.php

*.js

*.html

*.htm

nun führt man die bat datei aus.

mein einziges problem ist das er mir die Dateien *.php *.js .... usw nicht packt. den Ordner pics packt er super...

also meine frage. warum geht das mit dem *.php usw nicht?

Gruß

kills

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.