How to Backup using Batch Files ? --> Ερώτηση

Εδώ λέμε ότι μας κατέβει και δεν έχει θέση αλλού

How to Backup using Batch Files ? --> Ερώτηση

Δημοσίευσηαπό panoshm » Τρί Απρ 16, 2013 4:09 pm

How to Backup using Batch Files?

Αγαπητοί μου συμφορουμίτες προγραμματιστές «καμμένοι» με τις εντολές του MS-DOS, ζητώ την βοήθειά σας! :pray: (συγχωρέστε με για το μακροσκελές post μου :shifty: )
Στο PC μου έχω 2 extra σκληρούς (D & E) στους οποίους έχω δεδομένα τα οποία θέλω να τα έχω ΜΟΝΙΜΑ backup .
Έχω πάρει έναν εξωτερικό σκληρό 2TB σε USB (Seagate) και θέλω να αποθηκεύω εκεί το backup.
ΟΜΩΣ: το ζητούμενο είναι το εξής, να μπορώ να έχω τον εξ. δίσκο ως «mirror» των άλλων 2
π.χ.
Έχω στον D και Ε σκληρό τα αρχεία
• έγγραφο.doc
• φωτό.jpg
• βίντεο.mp4
σε 3 διαφορετικούς φακέλους π.χ. docs , photos , videos
Εκτελώ το backup και αυτό πάει και γράφει στον εξ. σκληρό ένα φάκελο D και Ε όπου μέσα πάει και βάζει αντίστοιχα αυτούς τους 3 φακέλους μαζί με τα αρχεία.
Μόλις πάω και
• Δουλέψω ένα αρχείο στην αρχική (πάντα) θέση του, π.χ. το έγγραφο.doc και το αλλάξω πατώντας save
• Αφήσω την φωτογραφία φωτό.jpg
• Δημιουργήσω άλλο αρχείο βίντεο1.mp4
• Σβήσω το αρχείο βίντεο.mp4
Θέλω στο επόμενο backup που θα κάνω, να ΜΗΝ τα φτιάξει ΠΑΛΙ από την αρχή σε άλλη «θέση» του εξ. δίσκου, αλλά να παρακολουθήσει τις αλλαγές αυτές και να τις κάνει στη θέση των αρχείων που προϋπάρχουν στον εξ. δίσκο, δηλαδή, πηγαίνοντας μετά με το Windows Explorer στον εξ. δίσκο να βλέπω τους 3 φακέλους μαζί με τα αρχεία:
• έγγραφο.doc (την νέα έκδοση)
• φωτό.jpg
• βίντεο1.mp4
και φυσικά αν έχω δημιουργήσει άλλον 4ο φάκελο να γραφτεί και αυτός στο backup. Αν όμως τον σβήσω την άλλη μέρα, στο μεθεπόμενο backup να σβήνει.

Όλο το ζητούμενο είναι, κάθε φορά που θα κάνω backup να έχω ένα mirror των 2 σκληρών D & E στον G χωρίς να "γεμίζει" ο δίσκος G με τις παλιές εκδόσεις

Και έτσι να μην γεμίζει ο εξ. δίσκος (G) με εκδόσεις backup

Αυτό γίνεται με script ενός batch αρχείου, και τι εντολές πρέπει να έχει αυτό το batch αρχείο?????

Ψάχνοντας στο internet βρήκα τα παρακάτω, αλλά λόγω της έλλειψης γνώσεων και εμπειρίας (έχω να δουλέψω απλές εντολές DOS καμιά 15ετία) δεν κατάλαβα αν μπορώ να κάνω continues backup….

Το link όπου βρήκα αυτές τις πληροφορίες είναι αυτό:
http://www.speedguide.net/articles/how- ... files-1547
2004.12.10 13:03

Sometimes it is useful, or even necessary to simply copy existing directories to another hard disk or network drive, rather than using more complicated backup methods. Multiple directories can be backed up comparatively easy with a simple click, by creating and running a batch file. That file can be executed manually from your desktop, can be added to startup or scheduled for periodic execution as needed.
Batch files have comparatively easy syntax and can have many uses, so this method could also be a good learning experience by example. You can simply copy the text below, and paste it into Notepad. Create a new file with either .bat or .cmd extension, rather than txt.
Here is a working example of a backup script you can modify for your needs:
@echo off
:: variables
set drive=G:\Backup
set backupcmd=xcopy /s /c /d /e /h /i /r /y
echo ### Backing up My Documents...
%backupcmd% "%USERPROFILE%\My Documents" "%drive%\My Documents"
echo ### Backing up Favorites...
%backupcmd% "%USERPROFILE%\Favorites" "%drive%\Favorites"
echo ### Backing up email and address book (Outlook Express)...
%backupcmd% "%USERPROFILE%\Application Data\Microsoft\Address Book" "%drive%\Address Book"
%backupcmd% "%USERPROFILE%\Local Settings\Application Data\Identities" "%drive%\Outlook Express"
echo ### Backing up email and contacts (MS Outlook)...
%backupcmd% "%USERPROFILE%\Local Settings\Application Data\Microsoft\Outlook" "%drive%\Outlook"
echo ### Backing up the Registry...
if not exist "%drive%\Registry" mkdir "%drive%\Registry"
if exist "%drive%\Registry\regbackup.reg" del "%drive%\Registry\regbackup.reg"
regedit /e "%drive%\Registry\regbackup.reg"
:: use below syntax to backup other directories...
:: %backupcmd% "...source directory..." "%drive%\...destination dir..."
echo Backup Complete!
@pause

The above example backs up "My Documents", Favorites, Outlook Express email/address book, (all for the current user) and the Windows Registry. It copies the files to the directory defined in the %drive% variable, or "g:\Backup". If the script is ran multiple times, it will only rewrite if the source files are newer. It will create subdirectories as necessary, and it will retain file attributes. It can copy system and hidden files.
In the above file, all lines that begin with "::" are comments. The "set drive=" and "set backupcmd=" near the top define two variables (referenced by %drive% and %backupcmd%), used a number of times throughout the file; the first being the location of the top directory where we want to backup, and the second the actual copy command with all necessary switches. All the "echo " lines in the file simpy output the line of text to the screen, and the lines beginning with %backupcmd% are the actual commands to execute.
Note that most of the folders in the above backup example are subdirectories of the %USERPROFILE%... It is possible to simply backup the entire user profile with My Documents, Favorites, Outlook Express, Outlook, etc. by backing up this one folder. Here is an example (it assumes the above "drive" and "backupcmd" variables are set):
%backupcmd% "%USERPROFILE%" "%drive%\%UserName% - profile"

Backing up Other Directories and networked PCs
You can backup other directories by simply creating more alike lines:
%backupcmd% "...source dir..." "%drive%\...destination dir..."
For example, if you'd like to backup "C:\Program Files\Microsoft Office" to our destination "G:\Backup\MS Office" (and retain the directory structure) you'd need to add the following line to the batch file:
%backupcmd% "C:\Program Files\Microsoft Office" "%drive%\MS Office"
Here is another example, backing up the Administrator Profile on a machine on the LAN with computer name "Lianli":
%backupcmd% "\\Lianli\c\Documents and Settings\Administrator" "%drive%\Lianli - admin profile"
Remember, you have to save the batch file with either .bat or .cmd extension, then just double-click to execute it.

Using the Current Date
Sometimes it is useful to create folders with the date incorporated in the folder name. Here is how to set the variable folder to the current date (assuming US system date format):
set folder=%date:~10,4%_%date:~4,2%_%date:~7,2%
%backupcmd% "...source dir..." "%drive%\%folder%\...destination dir..."
It is also possible to use the current time in the folder name. The following example with incorporate both the current date and time to the minute, separated by underscores. There is an extra step that cleans up possible spaces in single-digit hours in the system time:
set hour=%time:~0,2%
if "%hour:~0,1%"==" " set hour=0%time:~1,1%
set folder=%date:~10,4%_%date:~4,2%_%date:~7,2%_%hour%_%time:~3,2%
%backupcmd% "...source dir..." "%drive%\%folder%\...destination dir..."

Example - dated directories
In the example below, we first set 3 variables: drive, folder, and backupcmd. The "drive" variable defines the root directory of our backups. The "folder" takes the 2 digit day value from the current date (US date format, taking 2 digits from the date command output, starting at the 7th character), which we will use as a subdirectory. The third variable, "backupcmd" defines our backup command with the appropriate command line switches we want to use.
@echo off
:: variables
set drive=D:\Backup
set folder=%date:~7,2%
set backupcmd=xcopy /s /c /d /e /h /i /r /k /y

echo ### Backing up directory...
%backupcmd% "C:\Program Files\somedirectory" "%drive%\%folder%"

echo Backup Complete!
@pause
This example will backup the "C:\Program Files\somedirectory" folder to "D:\Backup\[dd]" where [dd] is the current day of the month. After a month, we will have 30ish daily copies of the backup... And, because of the xcopy command line switches chosen, following backups will only overwrite files that are newer, speeding up subsequent backups. Alternatively you can add a line to delete the %folder% directory prior to executing the %backupcmd% if you prefer to start clean (and take longer).

Cleaning up
It is usually a good idea to clean up temporary files, cookies, and history from the destination backup, as applicable. It is especially useful if you're backing up full, multiple user profiles and overwriting them periodically. Since temporary files and cookies change, your backed up directories will keep increasing with unnecessary files. To remedy this, the following code can be added to the backup script, or to a separate batch file. It will automatically search all subdirectories for "cookies", "temp" and "history", and then remove those directories:
:: change to the destination drive first
G:
:: your parent backup directory
drive=G:\Backup

echo ### Searching for files to clean up...
cd %drive%
dir /s/b/ad \cookies > %drive%\cleanup.txt
dir /s/b/ad \temp > %drive%\cleanup.txt
dir /s/b/ad \history > %drive%\cleanup.txt
echo ### Deleting cookies, temp files and history from backup dir
for /f "delims=" %%J in (%drive%\cleanup.txt) do rd "%%J" /Q/S
echo Cleanup complete
@pause

Note that you need to change to the destination drive, and the main backup directory before searching for files to delete. Any sub-folders that contain "cookies", "temp", or "history" will be deleted automatically. You can test to see what will be deleted by commenting out the "for /f ....." line (just add :: to the beginning of the line, or delete it from the batch file and add it again later). If that line is not present, the file will only list all files to be deleted in the cleaup.txt file, located in the destination directory (G:\Backup\cleanup.txt in the above example). If you add the cleanup portion to the end of your backup batch file, you may want to remove the "@pause" line at the end of the backup portion, so everything can execute without user interacion.
Alternatively, there is a simpler one-line method of deleting specific subdirectories after backing up. The disadvantage of using this method is that you'd need another line for each separate directory to be removed... In other words, it doesn't work well when removing a large number of directories by similar names. Still, here is an example:
rmdir /s /q "%drive%\%UserName%\Local Settings\Temporary Internet Files"


Notes:
• Any batch file can be interupted with CTRL+C or CTRL+Break if needed. They can also be paused with the Pause/Break key.
• Instead of backing up My Documents, Favorites, Outlook and Outlook Express files separately, you can combine it all into one line for the current user: %backupcmd% "%USERPROFILE%" "%drive%\%UserName% - profile" . The only disadvantage being that it would save temporary IE files as well (however the default location of those can be changed, or you can automate cleanup after backing up, as described above).
• The Registry backup in the above examples works well only for partial registry restores, it does not save the complete system state. Read this FAQ for more info.
• Also check: Microsoft SyncToy 2.1 for folder synchronization.
GV2.0 5D Freestyle 07/'05,AVM,Ποδιές,5xFF50HELLA,Lovato smart ExR Premium,Nuvi1490Τ,Montana650,Midland220
Άβαταρ μέλους
panoshm
Vitaraclub Platinum Member
Vitaraclub Platinum Member
 
Δημοσιεύσεις: 30502
Εγγραφή: Τρί Δεκ 23, 2008 2:33 pm
Λάστιχα: Geolandar M/T G003
Διάσταση ελαστικών: 205/80/16
Suspension: MAD/KYB +12cm
cb: Ναι
Εργάτης: Όχι
Aka: O γεωαναφερόμενος ή αλουμινοποδιάς!
Name: Πάνος

Re: How to Backup using Batch Files ? --> Ερώτηση

Δημοσίευσηαπό Tzivitzonis » Τρί Απρ 16, 2013 4:42 pm

Fst... Άσε τα μπατς και τα μπουτς... Θες ένα και είσαι οκ!

:greetings-wavegreen: :greetings-cya:
Grand Vitara 1.6 3D (2002) ---- GFi LPG system
Ποτέ μην υπερεκτιμάς τις ικανότητες τις δικές σου ή του GV σου!!

Homo homini lupus est
Άβαταρ μέλους
Tzivitzonis
Administrator
Administrator
 
Δημοσιεύσεις: 38166
Εγγραφή: Πέμ Νοέμ 20, 2008 8:05 pm
Τοποθεσία: ΠΑΤΡΑ
Λάστιχα: Michelin Lat.Cross
Διάσταση ελαστικών: 215/70/16
Suspension: Αποστάτες +3/KYB
cb: Ναι
Εργάτης: Όχι
Aka: Καλτσόγιαννος-Τζιτζιλόνης-Πατροτζούλης
Name: Τζιβιτζόνης

Re: How to Backup using Batch Files ? --> Ερώτηση

Δημοσίευσηαπό hlias » Τρί Απρ 16, 2013 6:29 pm

σορρυ αλλα το μονο που καταλαβα ειναι το φωτο κ βιντεο που λεει καπου στα γραφτα σου. :-) :-)
οτι δε πιστευεις δε σημαινει οτι δεν υπαρχει
Άβαταρ μέλους
hlias
Vitaraclub Platinum Member
Vitaraclub Platinum Member
 
Δημοσιεύσεις: 8330
Εγγραφή: Δευτ Οκτ 27, 2008 6:08 pm
Τοποθεσία: ιλιον
Λάστιχα: Hankook dynapro
Διάσταση ελαστικών: 225/75/16
Suspension: MAD+Rancho+αποστατες
cb: Ναι
Εργάτης: Όχι
Name: Ηλιας

Re: How to Backup using Batch Files ? --> Ερώτηση

Δημοσίευσηαπό vitaroulas » Τρί Απρ 16, 2013 7:13 pm

Εγώ Πάνο χρησιμοποιώ

Είναι δωρεάν :-)
vitaroulas
Vitaraclub Platinum Member
Vitaraclub Platinum Member
 
Δημοσιεύσεις: 4102
Εγγραφή: Σάβ Ιαν 17, 2009 4:37 pm
Τοποθεσία: Μαρούσι
Λάστιχα: Univergoma Hamada
Suspension: Mad,Kyb,αποστάτες
cb: Ναι
Aka: damino
Name: Δαμιανός

Re: How to Backup using Batch Files ? --> Ερώτηση

Δημοσίευσηαπό ΜΩΡΑΙΤΗΣ » Τρί Απρ 16, 2013 8:15 pm

:confusion-scratchheadblue: :confusion-scratchheadblue: :confusion-scratchheadblue: :confusion-scratchheadblue: :confusion-confused: :confusion-confused: :confusion-confused: κοίτα να δείς επιστήμες...........................
Σαν έρθει η ώρα της πορείας πολλοί δεν ξέρουν πως επικεφαλής βαδίζει ο εχθρός τους.
Η φωνή που διαταγές τους δίνει είναι του εχθρού τους η φωνή.
Και εκείνος που για τον εχθρό μιλάει είναι ο ίδιος τους ο εχθρός.
Μπ. Μπρέχτ
Άβαταρ μέλους
ΜΩΡΑΙΤΗΣ
Vitaraclub Platinum Member
Vitaraclub Platinum Member
 
Δημοσιεύσεις: 27151
Εγγραφή: Τρί Ιούλ 08, 2008 1:08 pm
Τοποθεσία: ΑΝΩ ΛΙΟΣΙΑ
Λάστιχα: MICHELIN
Suspension: BILSTEIN B6
cb: Όχι
Aka: Ο Κυανοπώγωνας..

Re: How to Backup using Batch Files ? --> Ερώτηση

Δημοσίευσηαπό panoshm » Τρί Απρ 16, 2013 8:26 pm

:think: Έβαλα το SyncToy και έχω ξεκινήσει το backup..... Για να δούμε.... Λες να είναι τόσο απλό τελικά και να έχω πελαγώσει τσάμπα? (βλέπω όμως ότι πρέπει να το τρέξεις εσύ για να δουλέψει ε? :think: )

ΥΓ: Δαμιανέ, προτίμησα το προϊόν της microsoft να δούμε αν θα με δικαιώσει αλλιώς πάω για δοκιμή στο δικό σου :whistle:
GV2.0 5D Freestyle 07/'05,AVM,Ποδιές,5xFF50HELLA,Lovato smart ExR Premium,Nuvi1490Τ,Montana650,Midland220
Άβαταρ μέλους
panoshm
Vitaraclub Platinum Member
Vitaraclub Platinum Member
 
Δημοσιεύσεις: 30502
Εγγραφή: Τρί Δεκ 23, 2008 2:33 pm
Λάστιχα: Geolandar M/T G003
Διάσταση ελαστικών: 205/80/16
Suspension: MAD/KYB +12cm
cb: Ναι
Εργάτης: Όχι
Aka: O γεωαναφερόμενος ή αλουμινοποδιάς!
Name: Πάνος

Re: How to Backup using Batch Files ? --> Ερώτηση

Δημοσίευσηαπό nipa » Τρί Απρ 16, 2013 8:34 pm

sync -toy εγγυηση Πάνο
Νίκος
Είσαι Έλληνας? Τι προσκυνάς? Σηκώσου απάνω.
Εμείς και στους Θεούς ορθοί μιλούμε
Θ. Κολοκοτρώνης
Άβαταρ μέλους
nipa
4x4 Trial Race Member
4x4 Trial Race Member
 
Δημοσιεύσεις: 1031
Εγγραφή: Σάβ Οκτ 18, 2008 7:47 am
Τοποθεσία: ΑΓΙΑ ΠΑΡΑΣΚΕΥΗ
Λάστιχα: Hankook Dynapro AT-m RF10
Διάσταση ελαστικών: 225/70/15
Suspension: MAD-ΚΑΥΑΒΑ
cb: Ναι
Εργάτης: Όχι
Name: Νίκος

Re: How to Backup using Batch Files ? --> Ερώτηση

Δημοσίευσηαπό Dimitris_T » Τρί Απρ 16, 2013 9:31 pm

Πάνο, το SyncToy θα σε καλύψει πλήρως· το χρησιμοποιώ καθημερινά εδώ και μια πενταετία για τον συγχρονισμό των HD του γραφείου, του σπιτιού, του φορητού και ενός εξωτερικού HD 1,5 ΤΒ (συγχρονισμός μερικών εκατοντάδων χιλιάδων αρχείων) χωρίς ποτέ να με προδώσει. Αν τώρα προτιμάς το ανοιχτό λογισμικό, δοκίμασε το freefilesync (http://www.freefilesync.sourceforge.net)· το είχα δοκιμάσει και εγώ - σαν εναλλακτική στο SyncToy - και είναι εξ ίσου καλό.
Grand Vitara 2.4 JLXEL Wagon
Dimitris_T
4x4 Grand member
4x4 Grand member
 
Δημοσιεύσεις: 185
Εγγραφή: Παρ Νοέμ 27, 2009 9:39 am
Τοποθεσία: Θεσσαλονίκη
Λάστιχα: Yokohama geolander
cb: Όχι
Name: Δημήτρης

Re: How to Backup using Batch Files ? --> Ερώτηση

Δημοσίευσηαπό Tzivitzonis » Τρί Απρ 16, 2013 10:40 pm

panoshm έγραψε:βλέπω όμως ότι πρέπει να το τρέξεις εσύ για να δουλέψει ε? :think:

Ε τι είναι ένα double click μπρος στον κώδικα μηχανής που ήθελες να φτιάξεις ωρέ;
Grand Vitara 1.6 3D (2002) ---- GFi LPG system
Ποτέ μην υπερεκτιμάς τις ικανότητες τις δικές σου ή του GV σου!!

Homo homini lupus est
Άβαταρ μέλους
Tzivitzonis
Administrator
Administrator
 
Δημοσιεύσεις: 38166
Εγγραφή: Πέμ Νοέμ 20, 2008 8:05 pm
Τοποθεσία: ΠΑΤΡΑ
Λάστιχα: Michelin Lat.Cross
Διάσταση ελαστικών: 215/70/16
Suspension: Αποστάτες +3/KYB
cb: Ναι
Εργάτης: Όχι
Aka: Καλτσόγιαννος-Τζιτζιλόνης-Πατροτζούλης
Name: Τζιβιτζόνης

Re: How to Backup using Batch Files ? --> Ερώτηση

Δημοσίευσηαπό panoshm » Τρί Απρ 16, 2013 11:22 pm

Dimitris_T έγραψε:δοκίμασε το freefilesync (http://www.freefilesync.sourceforge.net)· το είχα δοκιμάσει και εγώ - σαν εναλλακτική στο SyncToy - και είναι εξ ίσου καλό.

Παρατηρώ ότι έχει επιλογή να φτιάξεις "σενάρια" λέγοντάς του να "σώσει" την ρύθμισή σου σε ένα "batch file" (ακούς Πατρινέ???? 8) ) π.χ. έφτιαξα το: BatchRun_D_backup.ffs_batch και μέσω του TaskScheduler των Windows να τρέχει αυτόματα daily, on Windows startup κλπ....

Το ερώτημα είναι:
έχω φτιάξει 3 "σενάρια" με 3 διαφορετικά batch files και έχω φτιάξει 3 TaskSchedulers που τρέχουν στο Windows startup... 15min μετά το startup, για να έχει "φορτώσει" ο υπολογιστής ότι άλλο χρειάζεται στο startup και μετά να "ασχοληθεί" με τα backup
Κάθε "σενάριο" φυσικά χρησιμοποιεί το ίδιο πρόγραμμα (freefilesync)... αν δεν έχει τελειώσει ακόμα το 1ο και έρθει η "ώρα του" να ξεκινήσει το 2ο, θα ξεκινήσει ή θα γίνει καμιά διένεξη? Αφορούν διαφορετικούς σκληρούς και προορισμούς το κάθε "σενάριο" απλά δεν ξέρω αν σε TaskScheduler μπορεί να "ανοίξει" 2 φορές το ίδιο πρόγραμμα... Χειροκίνητα το άνοιξα 2 φορές και έκανα ταυτόχρονα compare σε 2 σενάρια και πάει μια χαρά.....


Βλέπω ότι έχει και Realtimesync αλλά "βλέπει" ένα μόνο "σενάριο" δηλαδή κάνει realtime σε ένα σκληρό μόνο..... Ας είναι, δεν θέλω να "τρέχω" συνέχεια ένα backup πρόγραμμα και να "βαραίνει" τον υπολογιστή...

kfanis έγραψε:Αυτή τη στιγμή τα σπάει το NovaBackup..... http://www.novastor.com/en/software/windows-backup
Αυτό είναι προφανώς realtime και "τρέχει" συνέχεια ε?
GV2.0 5D Freestyle 07/'05,AVM,Ποδιές,5xFF50HELLA,Lovato smart ExR Premium,Nuvi1490Τ,Montana650,Midland220
Άβαταρ μέλους
panoshm
Vitaraclub Platinum Member
Vitaraclub Platinum Member
 
Δημοσιεύσεις: 30502
Εγγραφή: Τρί Δεκ 23, 2008 2:33 pm
Λάστιχα: Geolandar M/T G003
Διάσταση ελαστικών: 205/80/16
Suspension: MAD/KYB +12cm
cb: Ναι
Εργάτης: Όχι
Aka: O γεωαναφερόμενος ή αλουμινοποδιάς!
Name: Πάνος

Re: How to Backup using Batch Files ? --> Ερώτηση

Δημοσίευσηαπό DimitrisGV » Τρί Απρ 16, 2013 11:32 pm

Απλά επειδή δεν το απάντησε κανείς παραπάνω, να προσθέσω ότι αυτό που περιγράφεις πιο πάνω, και μάλιστα το ονοματίζεις με "mirror" με τις standard εντολές του DOS δεν γίνεται. Η για να μην είμαι απόλυτος, αν γίνεται γίνεται τόσο δύσκολα, ώστε είναι καλύτερα να το κάνεις με μια γλώσσα προγραμματισμού, ενα δικό σου προγραμματάκι να είσαι ήσυχος. (Το παράδειγμα που αναφέρεις είναι extensions, ουσιαστικά είναι μέρος των windows με command prompt). Αλλά δεν έχει κανένα νόημα, κάτι τέτοιο.
Σε κάθε περίπτωση αυτά που υπέδειξαν τα παιδιά είναι άριστα. :wink:
NGV 2.4 auto, ΚenWood DNX9260BT.
Άβαταρ μέλους
DimitrisGV
4x4 All Terrain member
4x4 All Terrain member
 
Δημοσιεύσεις: 439
Εγγραφή: Σάβ Δεκ 18, 2010 3:38 pm
Τοποθεσία: Σαλαμίνα
Λάστιχα: Yokohama GEO A/Τ-S
Suspension: MAD
cb: Όχι
Name: Δημήτρης

Re: How to Backup using Batch Files ? --> Ερώτηση

Δημοσίευσηαπό panoshm » Τρί Απρ 16, 2013 11:33 pm

Dimitris_T έγραψε:Πάνο, το SyncToy θα σε καλύψει πλήρως· ...............χωρίς ποτέ να με προδώσει. ..........

Μόλις με πρόδωσε :lol: :lol: .... δεν αντιγράφει αρχεία με path>260 χαρακτήρες.... πρέπει να του πω να τα βάζει σε άλλο φάκελο με κάποια "συνθήκη" για αυτού του είδους τα αρχεία.... :violin:

Οπότε με βλέπω να καταλήγω στο freefilesync (υποστηρίζει > 260 character path ήδη "διόρθωσε" ότι παρέλειψε το SyncToy) αν δω ότι το παραπάνω TaskScheduler των Windows πετύχει.....

Για να δούμε....
GV2.0 5D Freestyle 07/'05,AVM,Ποδιές,5xFF50HELLA,Lovato smart ExR Premium,Nuvi1490Τ,Montana650,Midland220
Άβαταρ μέλους
panoshm
Vitaraclub Platinum Member
Vitaraclub Platinum Member
 
Δημοσιεύσεις: 30502
Εγγραφή: Τρί Δεκ 23, 2008 2:33 pm
Λάστιχα: Geolandar M/T G003
Διάσταση ελαστικών: 205/80/16
Suspension: MAD/KYB +12cm
cb: Ναι
Εργάτης: Όχι
Aka: O γεωαναφερόμενος ή αλουμινοποδιάς!
Name: Πάνος

Re: How to Backup using Batch Files ? --> Ερώτηση

Δημοσίευσηαπό Tzivitzonis » Τρί Απρ 16, 2013 11:40 pm

Ρε βάλε το Συγχρονιστικό Παιχνίδι που μου θες και αυτοματισμούς!!!! :tsoukalas:
Ε ρε τι παθαμε... με Η/Μ μπλέξαμε; :doh: :ugeek: :lol: :lol: :lol: :lol:
Grand Vitara 1.6 3D (2002) ---- GFi LPG system
Ποτέ μην υπερεκτιμάς τις ικανότητες τις δικές σου ή του GV σου!!

Homo homini lupus est
Άβαταρ μέλους
Tzivitzonis
Administrator
Administrator
 
Δημοσιεύσεις: 38166
Εγγραφή: Πέμ Νοέμ 20, 2008 8:05 pm
Τοποθεσία: ΠΑΤΡΑ
Λάστιχα: Michelin Lat.Cross
Διάσταση ελαστικών: 215/70/16
Suspension: Αποστάτες +3/KYB
cb: Ναι
Εργάτης: Όχι
Aka: Καλτσόγιαννος-Τζιτζιλόνης-Πατροτζούλης
Name: Τζιβιτζόνης

Re: How to Backup using Batch Files ? --> Ερώτηση

Δημοσίευσηαπό Dimitris_T » Τρί Απρ 16, 2013 11:41 pm

Απ' ότι κατάλαβα από το αρχικό post του Πάνου, δεν ψάχνει για λογισμικό backup, αλλά για λογισμικό συγχρονισμού αρχείων: πρόκειται για δύο τελείως διαφορετικά πράγματα, μιας και το backup χρησιμοποιείται για την λήψη αντιγράφων ασφαλείας (backups επί το ελληνικότερον) του σκληρού δίσκου, την συγκεκριμένη χρονική στιγμή. Η χρησιμότητά του είναι ότι μπορείς να επαναφέρεις τα δεδομένα του δίσκου σου όπως αυτά ήταν την στιγμή που πήρες το backup, γι' αυτόν ακριβώς το λόγο ποτέ δεν παίρνεις backup στο ίδιο μαγνητικό μέσο κάθε μέρα (αν πρόκειται για καθημερινό backup). Ένα σχήμα που χρησιμοποιείται είναι π.χ. να παίρνεις backup σε δύο εξωτερικούς δίσκους (ή μαγνητικές ταινίες για τους παλιότερους): στον ένα την Δευτέρα, Τετάρτη, Παρασκευή και στον άλλο την Τρίτη, Πέμπτη, Σάββατο. Τα δεδομένα του backup επίσης δεν διαβάζονται «απ' ευθείας», αλλά ανακτώνται με ειδική διαδικασία (restore) κάθε λογισμικού. Το πλεονέκτημα του backup δηλ. είναι ότι μπορείς να επαναφέρεις τα δεδομένα σου σε προηγούμενη κατάσταση που κυμαίνεται - ανάλογα με το σχήμα που ακολουθείς - από μία έως αρκετές ημέρες. Επιπλέον η διαδικασία backup είναι σαφώς πιό χρονοβόρα (μπορεί όμως να αυτοματοποιηθεί κια να τρέχει σε μη εργάσιμες ώρες), ιδίως όταν παίρνεις full backup (full backup παίρνεται συνήθως μία φορά την εβδομάδα, ενώ τις καθημερινές παίρνεις incremential backup). Για τους λόγους αυτούς - και μερικούς ακόμη - η διαδικασία backup ακολουθείται συνήθως από εταιρείες με σημαντικό και πολύτιμο όγκο δεδομένων, απαιτεί αυστηρό πρωτόκολλο και τα σχετικά λογισμικά κοστίζουν ακριβά.
Το λογισμικό συγχρονισμού αρχείων έχει τελείως διαφορετική λογική και λειτουργία. Αποσκοπεί - και είναι χρήσιμο - στον συγχρονισμό των αρχείων διαφορετικών Η/Υ (π.χ. γραφείο - σπίτι - φορητός), ώστε να είσαι σίγουρος ότι δουλεύεις κάθε φορά με την τελευταία έκδοση του αρχείου που θέλεις. Είναι απλούστερο στη χρήση (τα αρχεία είναι άμεσα αναγνώσιμα και η προσπέλασή τους δεν απαιτεί ειδικό λογισμικό ούτε ειδική διαδικασία ανάκτησης - restore), αλλά το μειονέκτημά του είναι ότι χάνεις ουσιαστικά τις προηγούμενες εκδόσεις των αρχείων (μένουν για λίγο βέβαια στον κάδο ανακύκλωσης, μέχρι τον επόμενο συγχρονισμό).
Grand Vitara 2.4 JLXEL Wagon
Dimitris_T
4x4 Grand member
4x4 Grand member
 
Δημοσιεύσεις: 185
Εγγραφή: Παρ Νοέμ 27, 2009 9:39 am
Τοποθεσία: Θεσσαλονίκη
Λάστιχα: Yokohama geolander
cb: Όχι
Name: Δημήτρης

Re: How to Backup using Batch Files ? --> Ερώτηση

Δημοσίευσηαπό DimitrisGV » Τρί Απρ 16, 2013 11:54 pm

Μια και ενδιαφέρθηκες για τις εντολές DOS, να πώ ότι το πρόβλημα των 260 χαρακτήρων μπορει να λυθεί με την εντολή subst (ίσως και με την εντολή assign, δεν είμαι όμως σίγουρος)
Αν επιμείνεις σε αυτό και θέλεις βοήθεια, :whistle: :whistle:
NGV 2.4 auto, ΚenWood DNX9260BT.
Άβαταρ μέλους
DimitrisGV
4x4 All Terrain member
4x4 All Terrain member
 
Δημοσιεύσεις: 439
Εγγραφή: Σάβ Δεκ 18, 2010 3:38 pm
Τοποθεσία: Σαλαμίνα
Λάστιχα: Yokohama GEO A/Τ-S
Suspension: MAD
cb: Όχι
Name: Δημήτρης

Επόμενο

Επιστροφή στο Γενική συζήτηση

KonKalamata Πέμ Μάιος 01, 2025 2:24 pm Καλησπέρα και Καλή Πρωτομαγιά σε όλη την ομάδα!
Γιωργος ΗΛΙΑΣ Πέμ Μάιος 01, 2025 1:47 pm Καλή Πρωτομαγιά με πολλά χαμόγελα!!!
makis_V Πέμ Μάιος 01, 2025 9:59 am Καλημέρα και καλό μήνα !
arahova Πέμ Μάιος 01, 2025 9:40 am Καλημέρα σε όλους και καλό μήνα.
antonis1627 Πέμ Μάιος 01, 2025 7:22 am Καλημέρα σας και καλό μήνα.
arahova Τετ Απρ 30, 2025 9:36 am Καλημέρα σε όλους.
antonis1627 Τετ Απρ 30, 2025 6:59 am Καλημέρα σας.
panagiotis1 Τρί Απρ 29, 2025 7:55 pm Θά ήθελα μια απάντηση αν θά έχει επιτυχία η συγκόλληση τού μπλοκ, αν κάποιος έχει κάνει κάτι αντίστοιχο.
arahova Τρί Απρ 29, 2025 10:54 am Καλημέρα σε όλους.
antonis1627 Τρί Απρ 29, 2025 7:00 am Καλημέρα σας.
ΣΤΑΥΡΟΣ Δευτ Απρ 28, 2025 7:52 pm Γιορτάζουμε τα 17α γενέθλια μας στην Αγία Μαρίνα στην .
arahova Δευτ Απρ 28, 2025 11:18 am Καλημέρα σε όλους και καλή εβδομάδα.
antonis1627 Δευτ Απρ 28, 2025 6:28 am Καλημέρα σας και καλή εβδομάδα.
arahova Κυρ Απρ 27, 2025 10:49 am Καλημέρα σε όλους και καλή Κυριακή.
antonis1627 Κυρ Απρ 27, 2025 7:17 am Καλημέρα σας
arahova Σάβ Απρ 26, 2025 9:01 am Καλημέρα σε όλους και καλό Σαββατοκύριακο.
antonis1627 Σάβ Απρ 26, 2025 7:25 am Καλημέρα σας και καλό Σαββατοκύριακο.
antonis1627 Παρ Απρ 25, 2025 1:45 pm Τετάρτη 30-4-2025 πάμε για καφεδάκι στον
arahova Παρ Απρ 25, 2025 8:49 am Καλημέρα σε όλους και καλο Π/Σ/Κ.
antonis1627 Παρ Απρ 25, 2025 6:30 am Καλημέρα σας.
arahova Πέμ Απρ 24, 2025 2:36 pm Καλησπέρα σε όλους.
antonis1627 Πέμ Απρ 24, 2025 6:25 am Καλημέρα σας.
arahova Τετ Απρ 23, 2025 5:39 pm Καλησπέρα σε όλους.
antonis1627 Τετ Απρ 23, 2025 6:46 am Καλημέρα σας.
antonis1627 Τρί Απρ 22, 2025 6:33 am Καλημέρα σας.
AJAX Chat © 2007 StarTrekGuide ? Updates every 5 Seconds

Μέλη σε σύνδεση

Μέλη σε αυτή την Δ. Συζήτηση: Δεν υπάρχουν εγγεγραμμένα μέλη και 22 επισκέπτες