//192.168.0.18/ubuntuyedek /mnt/truenas cifs_netdev,username=pacs,password=akpacs,dir_mode=0777,file_mode=0777,,uid=0,gid=0 0 0
sudo mount -t cifs //nas-server/cifsShare /media/paul/cifsShare -o username=paulOnNAS,iocharset=utf8,file_mode=0777,dir_mode=0777,soft,user,noperm
mount -t cifs -o username=USERNAME,password=PASSWD,uid=$USER,gid=$USER //192.168.1.88/shares ~/mnt/share
mount -t cifs -o username=USERNAME,uid=$USER,gid=$USER //192.168.1.88/shares ~/mnt/share
sudo mount -t cifs //192.168.0.18/ubuntuyedek /mnt/truenas -o username=pacs,iocharset=utf8,file_mode=0777,dir_mode=0777,soft,user,noperm OK
sudo mount -t cifs //192.168.0.18/ubuntuyedek /mnt/truenas -o username=pacs,iocharset=utf8,file_mode=0777,dir_mode=0777,soft,user,noperm OK
sudo mount -t cifs -o username=pacs,password=akpacs,uid=$USER,gid=$USER //192.168.0.18/ubuntuyedek /mnt/truenas OK
//192.168.0.18/ubuntuyedek /mnt/truenas cifs -o username=pacs,password=akpacs,uid=$USER,gid=$USER
sudo mount -t //192.168.0.18/ubuntuyedek /mnt/truenas cifs -o username=pacs,password=akpacs,uid=$USER,gid=$USER
//192.168.1.1/SharedFolder/ /mnt/linux_smb cifs username=winuser,password=TopSecret 0 0
//192.168.0.18/ubuntuyedek/ /mnt/truenas cifs username=pacs,password=akpacs 0 0 OK
C:\Users\savas>ssh pacs@192.168.0.17
pacs@192.168.0.17's password:
Welcome to Ubuntu 20.04.3 LTS (GNU/Linux 5.4.0-166-generic x86_64)
pacs@test:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 1.9G 0 1.9G 0% /dev
tmpfs 389M 1.3M 388M 1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv 19G 13G 5.3G 71% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/sda2 974M 108M 799M 12% /boot
/dev/loop0 56M 56M 0 100% /snap/core18/2128
/dev/loop1 71M 71M 0 100% /snap/lxd/21029
/dev/loop2 33M 33M 0 100% /snap/snapd/12704
tmpfs 389M 0 389M 0% /run/user/1000
sudo mkdir -p /mnt/truenas 1>sunucu üzerinde bir dizin oluştur.
sudo apt-get install cifs-utils 2>sunucu üzerinde cifs kur
sudo apt-get install rsync 3>sunucu üzerinde rsync kur
sudo rsync -av /home/pacs/test/ /mnt/truenas/ 4>sunucu üzerindeki bir dizini(/home/pacs/test) klasörünü başka bir sunucu üzerindeki samba paylaşım(/mnt/truenas) klasörü ile eşitleme yapmak.
sudo nano /etc/fstab 5>sunucu üzerinde fstab dosyasına "//192.168.0.18/ubuntuyedek/ /mnt/truenas cifs username=pacs,password=akpacs 0 0" ekle
sudo mount -a -v 6>sunucu üzerinde mount ekleme yapmak için
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/ubuntu-vg/ubuntu-lv during curtin installation
/dev/disk/by-id/dm-uuid-LVM-cRLkytkfvj45Sbj7Bgc7Jgi10xNhU3rdPwpwJ9Ng1UYXyYCmYZiukaQRzkkt2nc9 / ext4 defaults 0 1
# /boot was on /dev/sda2 during curtin installation
/dev/disk/by-uuid/414ca183-8b25-404c-9425-9e3cf42d21c0 /boot ext4 defaults 0 1
/swap.img none swap sw 0 0
#//192.168.0.18/ubuntuyedek /mnt/truenas cifs_netdev,username=pacs,password=akpacs,dir_mode=0777,file_mode=0777,,uid=0,gid=0 0 0
#mount -t cifs -o username=pacs,password=akpacs,uid=$USER,gid=$USER //192.168.0.18/ubuntuyedek ~/mnt/truenas
#//192.168.0.18/ubuntuyedek /mnt/truenas cifs -o username=pacs,password=akpacs,uid=$USER,gid=$USER
//192.168.0.18/ubuntuyedek/ /mnt/truenas cifs username=pacs,password=akpacs 0 0 OK
Filesystem Size Used Avail Use% Mounted on
udev 1.9G 0 1.9G 0% /dev
tmpfs 389M 1.3M 388M 1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv 19G 13G 5.3G 71% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/sda2 974M 108M 799M 12% /boot
/dev/loop0 56M 56M 0 100% /snap/core18/2128
/dev/loop1 33M 33M 0 100% /snap/snapd/12704
/dev/loop2 71M 71M 0 100% /snap/lxd/21029
//192.168.0.18/ubuntuyedek/ 27G 6.1G 21G 23% /mnt/truenas
tmpfs 389M 0 389M 0% /run/user/1000
Bu şekilde ubuntu server 20 üzerindeki bir klasörü, başka bir sunucu truenas core 13 update 5 üzerindeki samba paylaşıma yedek almak için,
1 Adet ubuntu server
1 Adet ubuntu üzerinde klasör
1 Adet TrueNAS 13 server
1 Adet samba paylaşım
At minute 0 past every 12th hour Her 12. saatte 0. dakikada
0 */12 * * * rsync -av /home/pacs/test/ /mnt/truenas/
0 */12 * * * rsync -av /home/pacs/test/yedekleme.sh
sudo crontab -e
0 */12 * * * rsync -av /home/pacs/test/ /mnt/truenas/ ile her 12 saatte bir yedekleme yapmak için
0 04 * * * rsync -av /home/pacs/test/ /mnt/truenas/