Tilted Forum Project Discussion Community

Tilted Forum Project Discussion Community (https://thetfp.com/tfp/)
-   Tilted Technology (https://thetfp.com/tfp/tilted-technology/)
-   -   Server backup via FTP (https://thetfp.com/tfp/tilted-technology/101015-server-backup-via-ftp.html)

j0hnb 02-11-2006 06:45 PM

Server backup via FTP
 
I am trying to set up a windows server 2003 to backup via FTP. Windows doesn't have any built in automated FTP client, so I was looking into using a 3rd party application to handle this. Is this the best approach or how would you suggest that I do this. Should I write a server script to handle this? And if so can you please give me a good reference in order for me to do this myself. Sorry I am new to this side of servers so I would gladly do it myself, I just wanted to make sure I am taking the right approach to it. Thanks.

sailor 02-12-2006 04:35 AM

You should be able to write a pretty easy batch script to do it. FTP is pretty easy to control from the command line.

j0hnb 02-12-2006 05:00 AM

are there any good resource sites that you would suggest? Sorry I am new to this side of it. On linux I would know where to go but with a windows server I am a little behind.

asshopo 02-12-2006 09:19 AM

SyncBack (the freeware versoin, not the "I cost money" version) is a good utility that I use at work. It will allow you to setup directories. You can zip each directory, or whatever selection of directories you are backing up (the zip each directory is nice when you have TONS and TONS of files). You can then copy to a network share or ftp server. Then you can set a schedule for it to run at 3am or whatever.

Again, I use this at work to sync our file shares and cross-backup files from server to server. I then, being paranoid (or smart), burn DVDs of the stuff every so often and get them off site.

MikeSty 02-12-2006 09:21 AM

Looks neato, but what about registry items?

asshopo 02-12-2006 09:28 AM

Don't know of any off the top of my head, but you could write a batch/VBS file to basicly do:

REGEDIT.EXE [ /L:system ¦ /R:user ] /E exportfile "registry_key"

On the exportfile, append the date, run it once a day via the scheduler. Then have a cleanup VBS script to prune files older than x days/weeks/months.

I do some stuff like this on my Windows server that has mysql. I do mysql-dump and append the date. Use the DelOldFiles.VBS script to prune anything older than 7 days.

I can post example VBS scripts if anyone wants them, but I will not be liable if something goes wrong :). I know they work, I use them in production environments, but if someone makes a mistake setting it, it's not my fault, ya know?

kofspades 02-12-2006 02:41 PM

You could use Apache Ant. I know it's meant to be a Java (and other) build tool, but you can do quite a bit of different scripting with it. Just another option.

Dilbert1234567 02-13-2006 09:07 PM

windows has a nice backup utility built right in, set up a shared folder on the server and have your system routinely backup to the folder.

http://www.microsoft.com/windowsxp/u..._03july14.mspx

asshopo 02-14-2006 06:05 AM

Dilbert,

I personally hate that software.. Ive tried a few times to get it to work properly and when I goto recover, I get files of 0 bytes. But, I prolly did something wrong, I know MS wouldn't blatantly put something THAT buggy out ;).

Dilbert1234567 02-14-2006 08:59 PM

heh, its not as powerful as professional options, but for basic data backup, it works great for me and my clients.

Nimetic 02-16-2006 02:50 AM

Windows has a command line FTP tool - I've used it to automate file transfers in the past (long time back). It was a bit of a hassle actually because the parameters differ slightly from UNIX.

I take it that you've looked at it and found it less than satisfactory?

In that case I was invoking the routine from SQL Server. These days I'd probably use the windows scheduler (via "explorer" or "at").

I'm not sure though that this is the right track. Why are you using FTP in the first place? No local backup options? What sort of machine are you FTP'ing to?

j0hnb 02-16-2006 04:58 AM

I don't mind doing it through command line FTP, I just don't know how to set that up to automatically run at a set time with a set set of values. Like the directory to upload, the FTP server and dir to put it in and all the login info.

There is a local backup, but with the fail being only 200 MB, it is no big deal to be extra safe and put it on a remote server.


All times are GMT -8. The time now is 10:52 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360