XCOPY command to copy files to SAN Storage - copy

Is there any command to transfer files to SAN storage usin xcopy? Please help me

SAN storage devices are typically of 2 classes: NAS and Block. The first use file-level access, i.e. use NFS, SMB/CIFS and etc (even FTP) to transfer files there.
Block-storage devices provide their space as raw drive-space, which is used as drives on the servers. So you have to attach the drive, create a new or mount an existing file-system to be able to copy files there.

Related

Use s3fs only to upload new files, don't care about existing ones already on bucket

I was hoping to use s3fs to upload new files into S3. On the documentation I saw that it doesn't work well when there are multiple clients uploading/syncing to the same bucket.
I really don't care about syncing files from to bucket to my local drive, I only want to perform the opposite: only upload to s3 new files as they are created.
Is there a way to achieve that with s3fs? It wasn't clear on the docs if they offer that functionality by the usage of flags.
s3fs does not synchronize files. Instead it intercepts the open, read, write, etc. calls and relays them to the S3 server. Thus it will work for your upload-only use case. Note that s3fs does use some temporary storage to stage the upload.

Stop share folder except default share, remote IPC and remote admin

All my windows client have a default share folder like this.
C$
D$
IPC$
ADMIN$
but i want delete or stop share folder except that, how can i delete or stop that share folder except default share folder in Command Line ?
or maybe there is some script i can use in powershell.
Continuing from my comments.
This is not a PowerShell code issue or even cmd.exe. It is a Windows OS config misunderstanding.
As per MS Docs (this talking to WS2K8 but applies to all server and clientside versions):
How to remove administrative shares in Windows Server 2008
https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/remove-administrative-shares
Introduction By default, Windows Server 2008 automatically creates
special hidden administrative shares that administrators, programs,
and services can use to manage the computer environment or network.
These special shared resources aren't visible in Windows Explorer or
in My Computer. However, you can view them by using the Shared Folders
tool in Computer Management. Depending on the configuration of your
computer, some or all of the following special shared resources may be
listed in the Shares folder in Shared Folders:
DriveLetter$: It's a shared root partition or volume. Shared root
partitions and volumes are displayed as the drive letter name appended
with the dollar sign ($). For example, when drive letters C and D are
shared, they're displayed as C$ and D$.
ADMIN$: It's a resource that is used during remote administration of a
computer.
IPC$: It's a resource that shares the named pipes that you must have
for communication between programs. This resource cannot be deleted.
NETLOGON: It's a resource that is used on domain controllers.
SYSVOL: It's a resource that is used on domain controllers.
PRINT$: It's a resource that is used during the remote administration
of printers.
FAX$: It's a shared folder on a server that is used by fax clients
during fax transmission.
Generally, we recommend that you don't modify these special shared resources. However, if you want to remove the special shared
resources and prevent them from being created automatically, you can
do it by editing the registry.
So, if you choose to do this, you can do it via the registry, using cmd.exe or PowerShell cmdlets. Yet, you really need to know the impacts of this if you do.
Again as per MS...
Generally, we recommend that you don't modify these special shared resources

How to download file from url and store it in aws s3 bucket?

as stated, I'm trying to download this dataset of zip folders containing images: https://data.broadinstitute.org/bbbc/BBBC006/ and store them in an s3 bucket so I can later unzip them in the bucket, reorganize them, and pull them in smaller chunks into a vm for some computation. Problem is, I don't know how to get the data from https://data.broadinstitute.org/bbbc/BBBC006/BBBC006_v1_images_z_00.zip for example or any of the other ones, to then send it s3
this is my first time using aws or really any cloud platform so please bear with me :]
Amazon EC2 provides a virtual computer just like a normal Linux or Windows computer.
Amazon S3 is a block storage service where you can upload/download files.
If you wish to copy files from a website to Amazon S3, you will need to write an application or script that will:
Download the files from the website
Upload them to Amazon S3
If you wish to do it from a script, you could use the AWS Command-Line Interface (CLI).
Or, you could do it from a programming language, see: SDKs and Programming Toolkits for AWS

Tableau replacing backward slash by slash in UNC path

I'm trying to create a Tableau's workbook connected to a CSV file. This file is on another server, in a shared folder. I can access it on Tableau Desktop, but when I publish it on Tableau Server, it doesn't work. My workbook doesn't find my file.
I unchecked Include External File and my shared folder is shared to everyone, so I don't understand why it doesn't work.
My only hint is that I specify my path like
"\\servername\folder\...\"
and Tableau diplay :
"The directory is missing or has been moved: //servername/folder/...".
Have you already seen that issue ? Have you any solutions ?
Note : my file is on a Windows server and Tableau on a Linux one.
You'll need to mount the network shares to a mount point on your Linux Tableau server, then tell Tableau where to find the mount points and their associated UNC path. See this article by Tableau on how to do this.
In short, Windows lets us connect to different disk drives or servers/computers using the C:\ D:\ A:\ \\servername notation. On Linux, every drive and network share is given a "mount point", such as /mnt/flashdrive or /mnt/servername, and you have to explicitly tell it what type of connection it is whereas Windows can try to figure it out for you.

Password-protect private stuff

I'm looking for a portable way (application, file format, library/API, CMS, DBMS, whatever) to deny read and write access to a collection of text files unless the user enters the password. This would be for personal use, i.e. the files would be stored on my computer, which I share with other people.
I've already tried with:
password protected archives: but even a minor edit to one file requires unpacking
and re-packing everything, which is quite annoying
a wiki backed by a DBMS, with a single password protected account: but the DBMS
root user will be able to read my stuff
... any ideas?
I use TrueCrypt to mount an encrypted volume on my PC. Also available for Mac and Linux.
I mount the volume when I want to work with the files (the volume shows up as a new drive letter), and unmount it when done. The mount does not survive a reboot, so shutting down the computer guarantees that the volume will have to be re-mounted before it can be accessed again.