Specify Remote Location for PrintWriter (applet question)

Hello,
I am trying to use a Java applet to access a URL, read in its text content, and save it to a file. The applet is run off an online host (our school server) so I made it a signed JAR file so I could access other hosts. However, here is my problem. The applet itself is in a remote location (our school server, a unix server). I can edit the directory via SSH to add files, and these files become accessible via my homepage (where I'm running the applet from in my browser). But what I need to do is write a file IN THE SAME DIRECTORY as the applet is being run from (ie, the remote directory). But I find that when I run the applet from my browser, it instead by default saves the file I've written to in the local machine's home directory (the desktop). How can I force the applet to save/write to a file in that remote directory (I have the permissions set up on it so that non-owner can write to the directory).
Maybe this isn't possible. I wasn't sure. Here is my code:
      //get URL containing the escape table
      URL inputURL = new URL(inputLocation);
      //make connection to the URL
      URLConnection inputCon = inputURL.openConnection();
      //save URL's contents as text file in same directory
      BufferedReader inputStream = new BufferedReader(new InputStreamReader(inputCon.getInputStream(), "UTF-8"));
      //save with same name as URL file
      File file = new File(inputURL.getFile());
      String filename = file.getName();
      PrintWriter outputStream = new PrintWriter(new File(filename), "UTF-8"); //this didn't work either: outputStream = new PrintWriter(filename, "UTF-8");
      //line of current input
      String line = null;
      //output text file to local text file line-by-line
      while((line = inputStream.readLine()) != null)
        System.out.println("line=" + line); //TEST TO MAKE SURE ACTUALLY READING FILE
        outputStream.println(line);
      }According to my System.out.println, it IS actually accessing the URL and reading each line from the URL's text file correctly, and outputStream.println(line) is correctly printing to the file; it's just doing it in the wrong place!
Also, I should specify: I can't hard encode the file location. It could be anywhere in my html directory. Rather, I want a way to save it in the same directory as the applet was deployed from.

It's for an assignment. All our assignments have to be applets and run from our unix server. I have to access a URL and get data from it, then create that file, then use that file as a reference table for something else.
The tragic part is I think I have everything else working, but I've no way to test it, as I cannot figure out how to access URLs in jgrasp (my IDE - just running the java file itself as an applet within the IDE has the error message about being unable to connect to the URL, since the applet is not signed, but I've no way how to get around that within the IDE itself) so I am testing it directly on the server as a signed jar file so I can at least access the urls.
The requirements stated:
"make a text file (UTF-8 encoding) of the file name t in the same directory where an applet is deployed; "
# A program must be written as an applet in Java. Other programming languages such as JavaScript cannot be used.
# The applet must be deployed on the ITS Web server
I could be missing something, honestly. >_< I might have a word with the TA. I'm just really frustrated since I have everything else working.

Similar Messages

  • Specify the location for any newly added column

    Hi friends,
    Is it possible in Oracle to specify the location for any newly added column. why it always goes to
    the last , I want to add a new column at first.
    If it is possible and anybody knows please tell me.
    Thanks & Regards
    Chandrakishore Bankhede

    Hi Chandrakishore,
    Not exactly a spatial question but the answer is "no" as far as I am aware.
    TOAD for Oracle has a nice feature called "Rebuild Table" that provides a GUI interface for redefining and moving columns around. Basically it generates all the required DDL for you - it saves all the constraints, indexes, triggers, etc. Then it creates a new table with your changes, renames the old table with a suffix and replaces all the constraints, indexes, triggers on the new table. Most helpful.
    However - see this makes the post spatial in nature :) - for as long as I have been around this feature of TOAD has not been able to handle SDO_GEOMETRY columns - failing with "ORA-22917: use VARRAY to define the storage clause". The good news is the new TOAD 10 now is free of this bug.
    This is not meant to be a commercial for TOAD, I just don't know of any other product with this feature. Others may know of similar things perhaps or you can write a function yourself in PL/SQL.
    Cheer,
    Paul

  • Specifying separate location for Archived logs in Persistent settings

    DB version:11gR1
    I am new to RMAN
    Currently my RMAN bkp script looks like
    run {
    recover copy of database with tag "INCR_BKP";
         backup check logical incremental level 1 format '/data_DISK1/bkp_dir/nhprod31/data/INCR_%d_%u'
              for recover of copy with tag "INCR_BKP" database;
         backup (archivelog all  format='/data_DISK2/bkp_dir/nhprod31/arch_logs/ARCH_%d_%T_%u_s%s_p%p' DELETE ALL INPUT TAG "arch_logs");
         backup format '/data_DISK1/bkp_dir/nhprod31/ctrl_file/RMAN_CTL_%s:%t:%p.bkp' current controlfile;
    }I want Datafiles and Archived logs to be stored in different locations like above.
    But i want to remove those lengthy path locations in the script and just use
    backup database plus archivelog;For this, i need to set
    configure channel device type disk format ='/u01/backup/ora_%U.bak';Question1.
    Is it possible to specify a separate archive log location using CONFIGURE command?
    Question2.
    If it is not possible, all the backup files will have the same naming convention
    ora_%U.bakhow will you identify the type of backup file. Say, i need the archive log files to be named with Log sequence number in it (like ARCH_%d_%T_%u_s%s_p%p). Shouldn't Oracle be including a provision for this?
    I am not even sure that each archive log file will backed up as a single backup file. Oracle may consolidate all the archive logs in to one backup piece. Please forgive my ignorance.

    783999 wrote:
    Try this for datafile backup:
    RMAN> CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '<PATH>/rbkp/databkp/DATA_L0_QA_%d_%s_%p';
    RMAN> show all;
    This worked for me.
    Regards,
    BikramThis won't work. Re-read the question carefully.

  • Specifying file location on uploaded applet

    Hi guys, as a test Im trying to get an applet to display an image. I have packed the applet and image file into a jar file. The image file was placed into a folder called images when the jar file was created. I have checked this using the jar tf command, and it clearly shows the file anim1.gif within the directory called images. Within the code of the applet, I find and load the image using:
    ImageIcon icon = null;
    URL iconURL = ClassLoader.getSystemResource("images/anim1.gif");
    if (iconURL != null)
    System.out.println( "found" );
    icon = new ImageIcon( iconURL );
    else
    System.out.println( "not found" );
    However, when i check the java console, i always get the message 'not found'. From reading the tutorials etc...i cannot see what im doing wrong. The image is definatley packed into the folder 'images' within the jar file, and u can see that the code gives this directory to look in. Am i doing something stupidly wrong??
    Any help would be much appreciated!!
    dug \8^D

    Try this way:
    URL picURL1 = getClass().getResource("images/rightArrow.gif");
          if(picURL1 != null && picURL2 != null) {
             icon1 = new ImageIcon(picURL1);

  • Specify location for J2EE(OC4J) on install of BI suite

    I have installed Oracle WebLogic Server 11g. Now I want to install the Business Intelligence Suite > Advance installation > Complete install.
    I guess my question is, how do I specify a location for the J2EE(OC4J) location when the Weblogic Server has its own JVM. I can not specify a drive number.
    On the installation of the BI suite, I am at the page that asks me to specify a valid oracle server 10g installation location…..it must have oracle container for J2EE(OC4J) and Oracle process manage and notification server (OPMN) installed….
    The default instance must be named HOME.
    Can you add some light on the situation?
    Thanks!

    Sorry!!! using wrong app.

  • More than one location for the same library?

    My library is on an external drive which is almost full. Is it possible to just extend and continue the same library to additional drives? How do I specify multiple locations for the same library?

    To add to Roddy's post I use iWebSites to manage multiple sites.. It lets me create multiple sites and multiple domain files.
    If you have multiple sites in one domain file here's the workflow I used to split them into individual site files with iWebSites. Be sure to make a backup copy of your original Domain.sites files before starting the splitting process and move it to another location on your HD until you're satisfied the separation process is completed and what you want.
    This lets me edit several sites and only republish the one I want.
    OT

  • Adding a WLAN for Remote Location

    Hello everyone,
    I have a question about creating a WLAN for a remote location on a 5508 WLC that's housed at our main office.  Attached is a diagram of the connection between the two locations.  My question is, how do I set this up?  Our WLC is at our main office (10.1.x.x) and I was able to get a lightweight AP to join the controller using an IP address from the local subnet of the remote location (10.20.x.x).  However, I want to create a new subnet that will be broadcast at the remote location only and clients will use the local DHCP/DNS server there.  Usually, I create a new interface when I set up a new network but I have to specify a VLAN ID.  Since the VLAN at the remote location is also VLAN 1, how do I go about doing this?  Do I create an untagged interface?  Please help!
    Regards,
    Terence

    I think you're better off using H-REAP/FlexConnect.

  • Error: binding operation "locate" must specify a name for its input message

    Hello everybody.
    I have a WSDL file created by .NET and I want to generate the corresponding Java classes.
    I am using JWSDP 1.5. I have created a config.xml as following:
    <?xml version="1.0"?>
    <configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config"
      <wsdl location="http://blablabla.asmx?WSDL"   packageName="blabla"  />
    </configuration> I also add the following line after the <configuration xmlns
    xmlns:tns="tnsFromWsld">As value I add the value appeared at tag of xmlns:tns from WSDL file.
    I received in both cases the following exception:
    "error: binding operation "locate" must specify a name for its input message".
    Does anybody knows what is the problem?
    I really appreciate your help.

    Hi berobero,
    You can only have the device in either Workgroup mode or Active Directory mode, not both. Which are you trying to set it up as?
    Have questions and need answers?
    Search the database for answers to FAQ's, software/driver downloads, tutorials, news, features and more!
    LenovoEMC Support & Downloads
    LenovoEMC North America Support Contact Page

  • How can i stop an error message that comes up when i am using word? the error message is "word is unable to save the Autorecover file in the location specified. Make sure that you have specified a valid location for Autoreover files in Preferences,-

    how can i stop an error message that comes up when i am using word? the error message is "word is unable to save the Autorecover file in the location specified. Make sure that you have specified a valid location for Autoreover files in Preferences,…"

    It sounds like if you open Preferences in Word there will be a place where you can specify where to store autorecover files. Right now it sounds like it's pointing to somewhere that doesn't exist.

  • Very simple question, how do you configure windows 8.1 to use a SF card as the default install location for software applications?

    Very simple question, how do you configure windows 8.1 to use a SD card / external drive as the default install location for software applications? Primarily interested in apps installed from the windows store. This should be available in the settings
    charm within the windows store. This must have been overlooked in the development of windows 8.1 or is a bug.
    Regards, Bill
    * update
    I've tried modifying this key and the path:
    “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx”
    http://answers.microsoft.com/en-us/windows/forum/windows_8-windows_store/how-do-you-install-apps-in-windows-8-from-the/c4fbe2a8-fd3d-41c1-b9a6-6f881eed374f
    Also tried using symlinks as detailed here:
    http://social.technet.microsoft.com/Forums/windows/en-US/8eee52c2-db0f-4032-8c72-7cd999e8b41a/windows-8-apps-installing-to-secondary-drive?forum=w8itprogeneral

    Here's some links I've used to try to figure this out:
    http://social.technet.microsoft.com/Forums/windows/en-US/2dfc0cd9-7d1b-41de-abce-e03fb6a5a383/metro-apps-not-working-in-windows-8-pro-x64-after-moving-users-and-programdata-folders?forum=w8itproinstall
    http://social.technet.microsoft.com/Forums/windows/en-US/8eee52c2-db0f-4032-8c72-7cd999e8b41a/windows-8-apps-installing-to-secondary-drive?forum=w8itprogeneral
    http://social.technet.microsoft.com/Forums/windows/de-DE/f5e33ac9-beab-4b99-b3ca-7cb5e6f415e4/how-do-you-change-metro-apps-default-install-location?forum=w8itprogeneral
    Regards, Bill
    The registry method does not work with 8.1.  I found this out the hard way.  Doing it on 8.1 will leave you reinstalling the OS if you didn't do a SRP beforehand.

  • Allow Goods Movement for materials through specified storage Location

    Dear Experts ,
    In Process order while confirming the goods movement , i want that goods movement shoould be allowed only through the specified storage location that is the production store . Even if the stock is there in the other stores like the general; store , i donot want the goods movement to be done.
    Kindly guide me how can this be done ?
    Anis

    Hello VS ,
    We have maintained the Pord Storage location in both BOM & Material Master.
    Despite this in Good Movement for process order the system doesnt stop from selecting any storage .
    I want that it should not be possible to post an entry from any other store.
    Is there any other way to do it without the user exit ?
    Regards
    Anis

  • Accessing multiple macs with ARD from remote location with Airport Extreme

    We have an office with a newer Airport Extreme and three macs on the network. We have turned on the Apple Remote Desktop in the port forwarding, but we can only access one computer at a time, and only if we port map it to the local IP of that computer (Ex 10.0.1.2).
    We would like to be able to access all three computers from a remote location. My question is this -
    Can I have a wildcard IP, or is there an IP I should use for ARD?
    Do I set up multiple port mapping with different ports and IPs?
    All computers are running 10.6.1 with the latest ARD updates.
    Any assistance would be appreciated.

    Great answer by Dave Sawyer:
    "To be able to connect to a workstation from outside it's network, the ports that ARD uses must be open on both ends of the connection. ARD uses ports 3283 and 5900 so those must be open.
    If your workstations get their addresses from an NAT device rather than being "real", the ports also need to be forwarded in the router to the workstation's internal IP address. ARD uses port 3283 for the reporting and updating function, so if your Macs are getting their IP addresses through NAT, since you can only forward a port to a single workstation, you can only get reports, push package/files to etc. for a single workstation.
    ARD uses the VNC protocol for observation and control, though, and there are a range of IP addresses for that protocol, starting with 5900. ARD uses 5900 by default, so that port would be forwarded to the first workstation. To be able to control more than one system, though, you would need to install VNC servers on the systems (since the ARD client cannot listen on any port other than 5900 while VNC servers can be set for other ports such as 5901, 5902, etc. You would then forward 5901 to the second workstation (and on to 5902, 5903, etc.). You can then use the following information:
    Remote Desktop 2: How to specify a port number for a VNC client to connect. -http://support.apple.com/kb/TA22880
    The only other options are: 1) to run the ARD administrator on a workstation on the network, and then take control of that system from outside, either via VNC or another copy of ARD, or 2) set up a virtual private network (VPN) so that when you connect from outside, your admin system is officially part of the local network.
    Hope this helps."

  • SBS 2011 GPO for changing the default save location for Word/Excel 2013 not working

    So this is a strange one. I've got an SBS 2011 server that's the only domain controller in the org. I've created a GPO to change the default save location for Excel 2013 and Word 2013 using the Office 2013 ADMX files which were installed to the PolicyDefinitions
    folder.
    The GPO (U-Office2013 Default Save Location) only contains:
    1. User Configuration - Microsoft Excel 2013/Excel Options/Save - Default file location - Enabled - Z:\
    2. User Configuration - Microsoft Word 2013/Word Options/Advanced/File Locations - Default file location - Enabled - Z:\
    The GPO is linked at the OU that contains my users for my SBS organization.
    When I do a gpupdate /force on a windows 7 system with office2013 installed, and then run a gpresult/rsop, the policy appears to be applied successfully as it lists my GPO under the Applied GPOs list on the workstation:
    Applied GPOs
    Default Domain Policy dyndns.local AD (24), Sysvol (24)
    U-Office2013 Default Save Location domain.local/SBSusers AD (6), Sysvol (6)
    In the gpresult report, the applied settings appear under:
    Administrative Templates
    Extra Registry Settings
    software\policies\microsoft\office\15.0\excel\options\defaultpath Z:\ U-Office2013 Default Save Location
    software\policies\microsoft\office\15.0\word\options\doc-path Z:\ U-Office2013 Default Save Location
    BUT, when I go to the workstation, and check office->options-Save-default file path, the path has not been changed to what the GPO is pushing.
    The strange thing is that in my test environment running 2008R2 server and Win7 with Office 2013 and identical settings the default save location is applied and works as expected.
    Any ideas?
    I've already tried re-installing the ADMX templates and re-created the GPO's several times.
    I should also note that other GPO's on the SBS2011 server such as the folder redirection GPO work as expected on the same windows 7 system. It just appears to be an issue with the default save location in office2013 and other Office 2013 related GPOs which
    utilize the recently added ADMX template that don't seem to be working for me.
    Thanks in advance.

    Hi Justin,
    Thanks for your reply. I have tried several different user accounts (all have local admin privileges to the workstation) with the same issue. The default save path does not get applied from the GPO to any of the users i've tried. Here's the steps I took
    per your suggestion:
    1. log on as a user who has never logged onto the workstation before.
    2. run gpupdate /force (entered y for yes when prompted to log off).
    3. Log back in as the user and open Office and check the default save path. It has not been changed to match the GPO setting.
    4. Check rsop to see if the policy was applied. Rsop states the gpo was applied successfully.
    I have attached the gpsvc.log file from a the session described above. The GPO Guid in question is: {DC3C93EC-7C28-48E9-BA38-FCA1E275A207}. Its common name is: U-Word 2013 Default Save Location. It's only setting is:
    Policies\Administrative Templates\Policy definitions(admx files retrieved from central store\Microsoft Word 2013\Word Options\Advanced\File Locations\Default File Location = Enabled\Documents = F:\
    -------gpsvc.log sections containing the aforementioned GUID start---------
    GPSVC(410.1730) 09:10:51:186 ProcessGPO:  ==============================
    GPSVC(410.df0) 09:10:51:186 GetGPOInfo:  ********************************
    GPSVC(410.1730) 09:10:51:186 ProcessGPO:  Searching <cn={DC3C93EC-7C28-48E9-BA38-FCA1E275A207},cn=policies,cn=system,DC=gc,DC=local>
    GPSVC(410.1730) 09:10:51:186 ProcessGPO:  User has access to this GPO.
    GPSVC(410.1730) 09:10:51:186 ProcessGPO:  GPO passes the filter check.
    GPSVC(410.1730) 09:10:51:186 ProcessGPO:  Found functionality version of:  2
    GPSVC(410.1730) 09:10:51:186 ProcessGPO:  Found file system path of:  <\\gc.local\SysVol\gc.local\Policies\{DC3C93EC-7C28-48E9-BA38-FCA1E275A207}>
    GPSVC(410.1730) 09:10:51:186 ProcessGPO:  Found common name of:  <{DC3C93EC-7C28-48E9-BA38-FCA1E275A207}>
    GPSVC(410.1730) 09:10:51:186 ProcessGPO:  Found display name of:  <U-Word 2013 Default Save Location>
    GPSVC(410.1730) 09:10:51:191 ProcessGPO:  Found user version of:  GPC is 3, GPT is 3
    GPSVC(410.1730) 09:10:51:191 ProcessGPO:  Found flags of:  0
    GPSVC(410.1730) 09:10:51:191 ProcessGPO:  Found extensions:  [{35378EAC-683F-11D2-A89A-00C04FBBCFA2}{D02B1F73-3407-48AE-BA88-E8213C6761F1}]
    GPSVC(410.1730) 09:10:51:191 ProcessGPO:  ==============================
    GPSVC(410.1730) 09:10:51:191 ProcessLocalGPO:  Local GPO's gpt.ini is not accessible, assuming default state.
    GPSVC(410.1730) 09:10:51:191 ProcessLocalGPO:  GPO Local Group Policy doesn't contain any data since the version number is 0.  It will be skipped.
    GPSVC(410.1730) 09:10:51:191 GetGPOInfo:  Leaving with 1
    GPSVC(410.1730) 09:10:51:191 GetGPOInfo:  ********************************
    -------gpsvc.log start---------
    -------output of gpresult /r-------
    Microsoft (R) Windows (R) Operating System Group Policy Result tool v2.0
    Copyright (C) Microsoft Corp. 1981-2001
    Created On 5/30/2014 at 9:24:08 AM
    RSOP data for GC\ssanders on OPTI9020-01 : Logging Mode
    OS Configuration:            Member Workstation
    OS Version:                  6.1.7601
    Site Name:                   Default-First-Site-Name
    Roaming Profile:             N/A
    Local Profile:               C:\Users\ssanders
    Connected over a slow link?: No
    COMPUTER SETTINGS
        CN=OPTI9020-01,OU=SBSComputers,OU=Computers,OU=MyBusiness,DC=gc,DC=local
        Last time Group Policy was applied: 5/30/2014 at 9:10:47 AM
        Group Policy was applied from:      GCSBS.gc.local
        Group Policy slow link threshold:   500 kbps
        Domain Name:                        GC
        Domain Type:                        Windows 2000
        Applied Group Policy Objects
            Windows SBS CSE Policy
            Windows SBS Client - Windows Vista Policy
            Windows SBS Client Policy
            Update Services Client Computers Policy
            C-Create Syntiro Root Folders
            Default Domain Policy
        The following GPOs were not applied because they were filtered out
            Local Group Policy
                Filtering:  Not Applied (Empty)
            Windows SBS Client - Windows XP Policy
                Filtering:  Denied (WMI Filter)
                WMI Filter: Windows SBS Client - Windows XP
        The computer is a part of the following security groups
            BUILTIN\Administrators
            Everyone
            BUILTIN\Users
            NT AUTHORITY\NETWORK
            NT AUTHORITY\Authenticated Users
            This Organization
            OPTI9020-01$
            Domain Computers
            System Mandatory Level
    USER SETTINGS
        CN=Stephen Sanders,OU=SBSUsers,OU=Users,OU=MyBusiness,DC=gc,DC=local
        Last time Group Policy was applied: 5/30/2014 at 9:13:17 AM
        Group Policy was applied from:      GCSBS.gc.local
        Group Policy slow link threshold:   500 kbps
        Domain Name:                        GC
        Domain Type:                        Windows 2000
        Applied Group Policy Objects
            Windows SBS User Policy
            Windows SBS CSE Policy
            Small Business Server Folder Redirection Policy
            U-Word 2013 Default Save Location
            U-Office 2013 Disable Backstage
            U-Office Disable Start Screen
            U-Office Trust Center Settings
            U-Word Autorecover Location
            U-Word Autosave Interval
            U-Word Disable Capitalization First Word
            U-Word Set Arial Default Font
            U-Word UI Customizations
            U-Power Plan Settings
            Default Domain Policy
        The following GPOs were not applied because they were filtered out
            Local Group Policy
                Filtering:  Not Applied (Empty)
        The user is a part of the following security groups
            Domain Users
            Everyone
            BUILTIN\Administrators
            BUILTIN\Users
            NT AUTHORITY\INTERACTIVE
            CONSOLE LOGON
            NT AUTHORITY\Authenticated Users
            This Organization
            LOCAL
            Windows SBS Link Users
            Windows SBS Fax Users
            Windows SBS SharePoint_MembersGroup
            Windows SBS Folder Redirection Accounts
            Windows SBS Remote Web Workplace Users
            High Mandatory Level
    -------end gpresult output-------       
    Thanks in advance for any help. I also have a pps ticket open with Microsoft, but they're dragging their feet.

  • T4-1 rack mount server as a remote server for disaster recovery setup.

    Hi, 
    I would like to ask some basic questions, as Solaris is not my area.
    1)
    T4-1 server is a rack mount server.  Now, we would like to use it for DR purpose.  Can we keep this rack mount server on remote location without conversion kit (to use it as a tower server).
    2)
    As I am new to this, would like to ask a basic question. This T4-1 server has 4 * 300GB hdd.   To expand storage capacity, we would like to add hard disks to this server.  Do we have to add 300gb hard disks only ? or we can add 2 new 600 GB hard disks.
    Thanks

    1) Yes, it does not need to be racked to run.  Putting it on a wire rack should work fine. Just verify the power and cooling requirements.
    2) You can add new internal disks, the system holds up to 8 internal 2.5" disks. Using a zpool, I would consider adding 4 more 600G disks for a RAIDZ pool, though you can add 2 600G disks and mirror them.
    Erik

  • Cloning a Mac OS X Server to a remote location

    Scenario: A Mac Mini running Mac OS X Server is in location A and a second Mac Mini running Mac OS X Server is to be acquired and setup at a remote location.
    Desire: Do a nightly backup of Server A to the second Mac Mini so that Server B is a bootable clone of the primary server.
    Question: What is the best software/approach to do this?
    Discussion: I'm familiar with and use SuperDuper, Synchronize Pro and Carbon Copy Cloner for performing file by file backups and synchronization where the hard drives are on the same server ... but I'm not sure if any of these are the best alternative to backup a MAMP Pro installation on the Server (along with other applications and data) to a remote server box.
    I realize that particularly within the Moodle VLE (that will be running on the servers) that absolute links will still point to the primary server but that is not an issue for me. In the event of a catastrophic failure of Server A at least there would be an offsite clone that could be accessed if a few settings were changed.
    BTW: Server A is hosted by a commercial hosting service and no backup drive is available on-site for a file x file backup/synchronization. We do have full access to the server via ARD, Timbuktu Pro, AFP, etc.

    Can you expand your info on the use of these two approaches, particularly the mysql replication
    Well, my approach requires that there's some kind of connectivity between the two machines - preferably a VPN network to secure the traffic, but it doesn't have to be done that way.
    rsync essentially takes two directories - one local and one remote - and compares the differences. Depending on the switches you use it will copy the changes from one system to the other (or both if that's what you prefer). In this case I'd set it to copy the local web directory to the remote machine, so the remote machine has a copy of all the files.
    rsync works best for static files (e.g. .html, .php, etc. in the case of a web application), but shouldn't be used for dynamic files such as your database files.
    As for the data, MySQL has substantial built-in replication routines that are designed to keep multiple database servers in sync. There's far more to it than I can go into here, suffice to say it can maintain a real-time copy of your data on a second, remote machine, and you should read the documentation for the specifics.

Maybe you are looking for

  • Problem with Samples in EXS24

    Hello Community, i use the EXS24 as Drum-Sampler in Logic. I load some Drum Hits (.wav) into the exs24 and record my drums tracks. But sometimes I have the following problem: I load a .wav file into the exs24 but it sounds not like the original .wav

  • 0 qty in stock, but still value

    Hi, our Inventory Audit report shows some items with a qty of 0 in stock, but nevertheless a positive cumulative value (up to $4.50) Since we use this report it is looks weird if the is a row with 0 in stock, but still a value. And if we remove lines

  • Confused iPhone wi-fi syncing to two iTunes libraries

    My iPhone is confused. It is syncing to two different computers. I have always had it synced to my home MacBook, and only charge it via USB during work on a Windows7 computer. Never a problem in three years. Now with ios5 and iTunes 10.5, after setti

  • How do I set up WRT54G router with 4 computers and WVC54GC Wireless Camera

    Can anyone please tell me how to set up my Home Network with full security turned on? I have at least 4 neighbors that show up on my wireless connections list. I have a daughter that loves music and is constantly downloading viruses but only on one w

  • FTPS error: Peer Certificate Rejected by Chain Verifier

    Hi, This scenario is a File to File - Outbound Async Interface. Receiver is configured FTPS with mostly the default parameters. However FTPS again haunted us with "Peer Certificate Rejected by Chain Verifier  " error.  We have configured one communic