These GUIs can be misleading since the actual underlying filesystem isn't using URL's.
To actually mount a CIFS file share(CIFS = samba shares / windows shares / etc) with mount:
[code]# /mnt/share, or wherever you mount it, should already exist and
# be an empty folder. ------- Post updated at 12:22 PM ---------- Previous update was at 12:16 PM ----------
dd isn't psychic. dd won't know and cannot know what space is occupied, that's handled at the filesystem level. You need to use filesystem-specific tools to handle that, and how that's done depends on the filesystem type.
Three options:
1) Do it manually. Save your boot sector and /etc/fstab so you know what kind of partitions belong where, then create tarballs of the contents of every partition. By restoring the boot sector, 'w'-ing it inside 'fdisk', re-creating empty partitions and un-taring their contents in them, you ought to create a bootable system.
2) Cheat, forcing an ordinary dd dump to compress better. Boot a livecd and mount partitions, then 'dd if=/dev/zero of=/mnt/partition/bigfile bs=1048576 ; rm /mnt/partition/bigfile' to overwrite all unused space with zeroes. When you make your dd dump, it should now compress very well when piped through gzip because all empty space will contain zeroes.
3) Use partiton-specific tools. (dump can understand ext2/ext3)
I usually do option 1, myself, since it allows you to create a new system with different partition sizes on restore, though it's fiddly and a lot more work.
So, to the smb server in for example, /mnt/share, I shall first mkdir /mnt/share; and then
right?
-about the first option of taking backup, could you clarify it for me with an example? I don't know about /etc/fstab n how to take my partition from there n tar them.
Hello,
Anyone out there can help on this problem?
I have a zip file about 34MB containing a file in EBCDIC and is resided on a Windows 2000 server.
This zip file is retrieved and read from a UNIX server via SAMBA "SMBCLIENT" (by default the file is transferred via command bin) and issued... (2 Replies)
Hello everybody .. i want connect with smbclient to an windows server 2003 with active directory. Exist a version of samba that can do this?
Thank you very much for your time.
Good Luck :b: (3 Replies)
I have successfully gotten AIX to print to a windows shared printer with this command:
smbclient -U user%password -W domain -c "print file.ext"
the only problem is: I have this print queue set up on the Windows side to overlay an image to all pages. When printing from samba, the overlay... (2 Replies)
The directory on windows server is renamed and I need to change the directory location on smbclient on unix. How do i do that, please advice. (2 Replies)
Hi,
I am trying to use smbclient to send message to a windows machine.It is showing "connection failed message" . After googled I came to know about "smbfind" which will give me the nodes in my network. In that list the machine name was not present where I was trying to send the message.
... (1 Reply)
Hi,
I've a question regarding a smbclient-Command in my shell script.
Here my relevant script part:
fileattr=`/opt/samba/bin/smbclient --authentication-file=$AUTH_FILE //$SMB_HOST/$SMB_SHARE 2> /dev/null
prompt off
cd $SMB_DIR
put $LOC_FILE $SMB_FILE
dir /$SMB_DIR/$SMB_FILE
... (17 Replies)
Hi All,
I've been facing on this issue.
From SunOS to Windows
/usr/local/samba/bin/smbclient \\IP\<source dir> -D $TARGET_DIR -U dir1/$WINDOWS_USER%$WINDOWS_PWD -c "put $SOURCE_FILE $TAR
GET_FILE;exit"
This command in my shell script work fine but the file saved on windows environment... (3 Replies)
Hi,
So I am writting a script to copy files from Linux to windows using smbclient, I have done this a fair amount of times now. Unfortunately this time I am using a simply if statement to determine if the file exists before beginning the smbclient section.....however if I tab the smbclient... (4 Replies)
Hi All,
Have written a couple of lines to move the contents of a folder from a unix box to a windows location using smbclient (below)
smbclient '{servicename}' -A ~/.smbclientauth -c 'mkdir \test_folder"'
smbclient '{servicename}' -A ~/.smbclientauth -c 'cd "; lcd ";... (4 Replies)
I have the smbclient installed and I am able to see information from the '-L' option. But when I attempt to login I'm getting the "NT_STATUS_BAD_NETWORK_NAME". I was hoping for help, because I'm not sure what is supposed to go into the smb.conf file. My goal is to transfer files from my Linux... (2 Replies)
Discussion started by: islanderman
2 Replies
LEARN ABOUT DEBIAN
bootcdbackup
BOOTCDBACKUP(1) bootcd utils BOOTCDBACKUP(1)NAME
bootcdbackup - create a bootable offline backup of a unix system
SYNOPSIS
bootcdbackup [-i] [-v] [-s] [-c <config directory>] [-url <url] [-nomount] [-2diskconf <file>] <dev> <name> <builddir>
DESCRIPTION
bootcdbackup creates a offline backup from a installed system. You need a running bootcd to boot the system with. This CD/DVD is booted on
the system and bootcdbackup creates a bootable CD/DVD with the bootcd kernel and the backup disk as tar-file.
To restore or clone the system, boot the CD/DVD image and install it with bootcd2disk -c <name> on the system.
bootcdbackup can try to discover the disk partition by searching for fstab on the given partition. A other way to backup the partition ta-
ble is the program bootcdmk2diskconf which creates a configuration file on a running system.
OPTIONS -i The bootcdbackup runs in interactive mode and you can run each function manually. This option is useful for debugging.
-v The option "-v" (verbose) adds messages on running.
-s This option can be used to disable interactive questions and to try to ignore errors.
-c <config directory>
The configuration directory which includes the file "bootcdbackup.conf", default is "/etc/bootcd".
-url <url>
If bootcdbackup is slow on your system (because of a slow CD/DVD drive or the HP ILO virtual CD interface), you can use an image server
to get the image from.
bootcdbackup use the SWAP partition of your upcoming system as temporary space and copy the image from the configured image server to
this partition and use it as image. The image server url is configured with this option.
-nomount
The target disk should not be mounted and no search for fstab is done.
--cpio
Normally as backup tool star will be used if selinux files have to be backed up and cpio will be used if not. With this option the
usage of cpio can be forced.
--star
Normally as backup tool star will be used if selinux files have to be backed up and cpio will be used if not. With this option the
usage of star can be forced.
-2diskconf <file>
The parameter configures a bootcd2disk.conf for the restore of the system done by bootcd2disk. The configuration file can be created
with the command bootcdmk2diskconf.
<dev>
Configures the device where bootcdbackup finds the file "fstab" and discover the configuration for the restore.
<name>
The name of the backup (no blanks!) is used on the creation time and to restore the backup with bootcd2disk -c <name>.
<builddir>
Builddir is an directory on the backup system where bootcdbackup build the backup CD/DVD. Space for the CD/DVD image, for compression
and the data is needed!
All other configuration has to be done in the config files.
FILES
/etc/bootcd/bootcdbackup.conf
Configuration for bootcdbackup.
SEE ALSO
Documentation in bootcdbackup.conf
bootcdbackup.conf(5), bootcd(1), bootcdflopcp(1), bootcdwrite(1)AUTHOR
This manual page was written by Bernd Schumacher <bernd.schumacher@hp.com> and Carsten Dinkelmann <Carsten.Dinkelmann@foobar-cpa.de> for
the Debian GNU/Linux system (but may be used by others).
bootcdbackup 2007-07-05 BOOTCDBACKUP(1)